Commit efabedf5 authored by VanillaSalt's avatar VanillaSalt

fix

parent b8702845
...@@ -56,30 +56,24 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,30 +56,24 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp)
if bit.band(tpe,TYPE_EQUIP+TYPE_CONTINUOUS)~=0 or tc:IsHasEffect(EFFECT_REMAIN_FIELD) then if bit.band(tpe,TYPE_EQUIP+TYPE_CONTINUOUS)~=0 or tc:IsHasEffect(EFFECT_REMAIN_FIELD) then
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
tc:CreateEffectRelation(te) elseif bit.band(tpe,TYPE_FIELD)~=0 then
if co then co(te,tp,eg,ep,ev,re,r,rp,1) end Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
if tg then tg(te,tp,eg,ep,ev,re,r,rp,1) end end
Duel.BreakEffect() tc:CreateEffectRelation(te)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) if co then co(te,tp,eg,ep,ev,re,r,rp,1) end
local etc=g:GetFirst() if tg then tg(te,tp,eg,ep,ev,re,r,rp,1) end
while etc do Duel.BreakEffect()
etc:CreateEffectRelation(te) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
etc=g:GetNext() local etc=g:GetFirst()
end while etc do
if op then op(te,tp,eg,ep,ev,re,r,rp) end etc:CreateEffectRelation(te)
tc:ReleaseEffectRelation(te) etc=g:GetNext()
etc=g:GetFirst() end
while etc do if op then op(te,tp,eg,ep,ev,re,r,rp) end
etc:ReleaseEffectRelation(te) tc:ReleaseEffectRelation(te)
etc=g:GetNext() etc=g:GetFirst()
end while etc do
else etc:ReleaseEffectRelation(te)
if bit.band(tpe,TYPE_FIELD)~=0 then etc=g:GetNext()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
if co then co(te,tp,eg,ep,ev,re,r,rp,1) end
if tg then tg(te,tp,eg,ep,ev,re,r,rp,1) end
Duel.BreakEffect()
if op then op(te,tp,eg,ep,ev,re,r,rp) end
end end
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