Commit 4526769a authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 3b14a37d
...@@ -11,7 +11,6 @@ function c74329404.initial_effect(c) ...@@ -11,7 +11,6 @@ function c74329404.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
e2:SetCondition(c74329404.ctcon)
e2:SetOperation(c74329404.ctop) e2:SetOperation(c74329404.ctop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--search --search
...@@ -33,11 +32,11 @@ end ...@@ -33,11 +32,11 @@ end
function c74329404.ctfilter(c,tp) function c74329404.ctfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008)
end end
function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74329404.ctfilter,1,nil,tp)
end
function c74329404.ctop(e,tp,eg,ep,ev,re,r,rp) function c74329404.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1c,1) local ct=eg:FilterCount(c74329404.ctfilter,nil,tp)
if ct>0 then
e:GetHandler():AddCounter(0x1c,ct)
end
end end
function c74329404.thcon(e,tp,eg,ep,ev,re,r,rp) function c74329404.thcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
......
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