Commit 778d389d authored by salix5's avatar salix5

Merge pull request #202 from nekrozar/patch-2

fix Electromagnetic Bagworm, Double Magical Arm Bind
parents 02e9677e e0dd759f
......@@ -53,8 +53,11 @@ function c72621670.activate(e,tp,eg,ep,ev,re,r,rp)
dg:Clear()
end
local tc=sg:GetFirst()
local tct=1
if Duel.GetTurnPlayer()~=tp then tct=2
elseif Duel.GetCurrentPhase()==PHASE_END then tct=3 end
while tc do
Duel.GetControl(tc,tp,PHASE_END+RESET_SELF_TURN,1)
Duel.GetControl(tc,tp,PHASE_END+RESET_SELF_TURN,tct)
tc=sg:GetNext()
end
if dg:GetCount()>0 then Duel.Destroy(dg,REASON_RULE) end
......
......@@ -30,7 +30,10 @@ function c7914843.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c7914843.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) and not Duel.GetControl(tc,tp,PHASE_END+RESET_SELF_TURN,1) then
local tct=1
if Duel.GetTurnPlayer()~=tp then tct=2
elseif Duel.GetCurrentPhase()==PHASE_END then tct=3 end
if tc:IsFaceup() and tc:IsRelateToEffect(e) and not Duel.GetControl(tc,tp,PHASE_END,tct) then
if not tc:IsImmuneToEffect(e) and tc:IsAbleToChangeControler() then
Duel.Destroy(tc,REASON_EFFECT)
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