Commit d998fc7d authored by Tachibana's avatar Tachibana

E

parent b919cd76
Pipeline #15417 passed with stages
in 25 minutes and 2 seconds
......@@ -17,6 +17,26 @@ function c57300020.initial_effect(c)
end)
e1:SetOperation(c57300020.atkop)
c:RegisterEffect(e1)
--
--self destroy
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e12:SetRange(LOCATION_MZONE)
e12:SetCode(EFFECT_SELF_DESTROY)
--e12:SetCondition(c57300020.sdcon)
--c:RegisterEffect(e1)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,LOCATION_MZONE)
e3:SetTarget(c57300020.eftg)
e3:SetLabelObject(e12)
c:RegisterEffect(e3)
end
function c57300020.eftg(e,c)
local val=e:GetHandler():GetOverlayCount()
return c:IsFaceup() and (c:IsLevelBelow(val) or c:IsRankBelow(val))
end
function c57300020.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
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