Commit 5d72f60f authored by mallu11's avatar mallu11 Committed by GitHub

fix 時の魔導士 (#1550)

parent b61b2348
......@@ -14,11 +14,25 @@ function c26273196.initial_effect(c)
e1:SetTarget(c26273196.destg)
e1:SetOperation(c26273196.desop)
c:RegisterEffect(e1)
--fusion check
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCondition(c26273196.matcon)
e2:SetOperation(c26273196.matop)
c:RegisterEffect(e2)
end
c26273196.toss_coin=true
function c26273196.descon(e,tp,eg,ep,ev,re,r,rp)
function c26273196.matcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c26273196.matop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(26273196,RESET_EVENT+0x1ec0000,0,1)
end
function c26273196.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(26273196)>0
end
function c26273196.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if chk==0 then return g:GetCount()>0 end
......
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