游戏王残局简化版

残局函数库.lua at [3f2a276904]
Login

残局函数库.lua at [3f2a276904]

File 残局函数库/残局函数库.lua artifact c1836ba268 part of check-in 3f2a276904


--[[message
警告:不是残局!!!
打不开!!!
打不开!!!
打不开!!!
]]

local str = {}
local fun = {}

local cache_1

fun["通关邀请"]=function()
  local effect_100
  effect_100 = Effect.GlobalEffect()
  effect_100:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_100:SetCode(EVENT_DAMAGE)
  function cache_1(effect_event
    , player_who_activate_the_effect
    , eg
    , ep
    , ev
    , re
    , reason_for_trigger
    , player_who_trigger)
    cache_1 = Duel.GetLP(1)
    return cache_1 <= 0
    end
  effect_100:SetCondition(cache_1)
  function cache_1(effect_event
    , player_who_activate_the_effect
    , eg
    , ep
    , ev
    , re
    , reason_for_trigger
    , player_who_trigger)
    Debug.ShowHint("残局群181175613")
    return
    end
  effect_100:SetOperation(cache_1)
  Duel.RegisterEffect(effect_100
    , 0)
  end