Commit be34e655 authored by JoyJ's avatar JoyJ

ATKCHANGE and DEFCHANGE can use at damage step

parent 6c5c0e28
......@@ -2,17 +2,26 @@
--游戏开始时,后攻者抽2张卡。
--每个回合开始时,非回合玩家将【灰流丽】【效果遮蒙者】【原始生命态尼比鲁】【增殖的G】【幽鬼兔】中的随机1张加入手卡。回合结束时,那张卡里侧表示除外。
local OrigSetType = Effect.SetType
CUNGUI = {}
function Auxiliary.PreloadUds()
Effect.SetType = function(e,typ)
if typ==EFFECT_TYPE_IGNITION then
typ=EFFECT_TYPE_QUICK_O
OrigRegister = Card.RegisterEffect
Card.RegisterEffect = function(c,e,forced)
local typ = e:GetType()
if typ and (typ & EFFECT_TYPE_IGNITION)>0 then
e:SetType(EFFECT_TYPE_QUICK_O)
e:SetCode(EVENT_FREE_CHAIN)
local cat = e:GetCategory()
if cat and (cat & (CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE))>0 then
local prop = e:GetProperty()
if not prop then prop = 0 end
prop = prop | (EFFECT_FLAG_DAMAGE_CAL+EFFECT_FLAG_DAMAGE_STEP)
e:SetProperty(prop)
end
OrigSetType(e,typ)
end
return OrigRegister(c,e,forced)
end
function Auxiliary.PreloadUds()
-- 2 more draw
local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment