Commit 8d966dfb authored by wind2009's avatar wind2009
parent 7d9467df
Pipeline #24278 passed with stages
in 42 seconds
......@@ -29,7 +29,10 @@ function s.lmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local c=e:GetHandler()
if tc and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(tc)
if not tc:IsImmuneToEffect(e) then
tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_EXTRA_LINK_MATERIAL)
......@@ -41,8 +44,9 @@ function s.lmop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
end
function s.mcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsControler(tp)
function s.mcon(e)
local tp=e:GetOwner():GetControler()
return e:GetHandler():IsControler(1-tp)
end
function s.matval(e,lc,mg,c,tp)
local ct=e:GetLabelObject()
......
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