Commit c79baf14 authored by Steeldarkeagel's avatar Steeldarkeagel

Update c83531441.lua

Fix: Will now change to Defence at the end of the Battle Phase not Damage Step.
parent 1d473281
......@@ -15,8 +15,10 @@ function c83531441.initial_effect(c)
c:RegisterEffect(e1)
--to defence
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_DAMAGE_STEP_END)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c83531441.poscon)
e2:SetOperation(c83531441.posop)
c:RegisterEffect(e2)
......@@ -61,14 +63,13 @@ function c83531441.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c83531441.poscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and e:GetHandler():IsRelateToBattle()
return e:GetHandler():GetAttackedCount()>0
end
function c83531441.posop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsAttackPos() then
Duel.ChangePosition(c,POS_FACEUP_DEFENCE)
end
end
end end
function c83531441.thcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsReason(REASON_RETURN)
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