Commit 8b162a18 authored by nanahira's avatar nanahira

fix

parent 5665f35f
......@@ -1926,7 +1926,7 @@ function cm.RemoveEffectCost_3L(ct,...)
local omit_list={...}
return function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetHandler():IsHasEffect(37564827) then return false end
--if e:GetHandler():IsHasEffect(37564827) then return false end
return cm.RemoveEffect_3L(tp,e:GetHandler(),ct,ct,true,table.unpack(omit_list))
end
cm.RemoveEffect_3L(tp,e:GetHandler(),ct,ct,false,table.unpack(omit_list))
......@@ -1996,7 +1996,20 @@ function cm.ContinuousEffectReplaceCondition_3L(f,con,cd)
if (f(c):IsExists(aux.FilterEqualFunction(Card.GetOriginalCode,cd),1,nil) and c:IsHasEffect(37564827)) then
return (not con or con(e,tp,eg,ep,ev,re,r,rp))
else
cm.RemoveCertainEffect_3L(e:GetHandler(),cd)
if Duel.GetCurrentChain()>0 then --Delay the effect removing to prevent stack overflow crash
local ex=Effect.CreateEffect(e:GetHandler())
ex:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ex:SetCode(EVENT_ADJUST)
ex:SetOperation(function(e)
cm.RemoveCertainEffect_3L(e:GetOwner(),e:GetLabel())
e:Reset()
end)
ex:SetLabel(cd)
ex:SetReset(RESET_CHAIN)
Duel.RegisterEffect(ex,tp)
else
cm.RemoveCertainEffect_3L(e:GetHandler(),cd)
end
return false
end
end
......
......@@ -25,7 +25,7 @@ function cm.effect_operation_3L(c,ctlm)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMING_DAMAGE_STEP+0x1c0)
e1:SetCountLimit(ctlm)
e1:SetCost(Senya.DescriptionCost(Senya.RemoveEffectCost_3L(1,m)))
e1:SetCost(Senya.DescriptionCost(Senya.RemoveEffectCost_3L(1)))
e1:SetOperation(cm.atkop)
c:RegisterEffect(e1,true)
Duel.Readjust()
......
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