Commit e629bc3e authored by mercury233's avatar mercury233

fix

parent 77b486a9
...@@ -32,6 +32,7 @@ function c94599451.initial_effect(c) ...@@ -32,6 +32,7 @@ function c94599451.initial_effect(c)
e4:SetCode(EFFECT_DESTROY_REPLACE) e4:SetCode(EFFECT_DESTROY_REPLACE)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetTarget(c94599451.reptg) e4:SetTarget(c94599451.reptg)
e4:SetOperation(c94599451.repop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c94599451.ctfilter(c) function c94599451.ctfilter(c)
...@@ -85,9 +86,9 @@ function c94599451.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,9 +86,9 @@ function c94599451.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c94599451.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c94599451.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReason(REASON_EFFECT) and Duel.IsCanRemoveCounter(tp,1,0,0x1,1,REASON_EFFECT) end if chk==0 then return c:IsReason(REASON_EFFECT) and c:GetCounter(0x1)>0 end
if Duel.SelectEffectYesNo(tp,c,96) then return Duel.SelectEffectYesNo(tp,c,96)
Duel.RemoveCounter(tp,1,0,0x1,1,REASON_EFFECT+REASON_REPLACE) end
return true function c94599451.repop(e,tp,eg,ep,ev,re,r,rp)
else return false end e:GetHandler():RemoveCounter(ep,0x1,1,REASON_EFFECT)
end 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