Commit 9df44cae authored by mercury233's avatar mercury233 Committed by GitHub

errata

parent e78a169a
......@@ -14,23 +14,18 @@ function c45247637.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(45247637,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetCondition(c45247637.ccon)
e2:SetOperation(c45247637.cop1)
e2:SetCondition(c45247637.retcon)
e2:SetOperation(c45247637.retop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetOperation(c45247637.cop2)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_SET_CONTROL)
e4:SetCondition(c45247637.ctcon)
e4:SetValue(c45247637.ctval)
c:RegisterEffect(e4)
e2:SetLabelObject(e4)
e3:SetLabelObject(e4)
--Equip limit
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
......@@ -69,16 +64,14 @@ function c45247637.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,c,tc)
end
end
function c45247637.ccon(e,tp,eg,ep,ev,re,r,rp)
function c45247637.retcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
end
function c45247637.cop1(e,tp,eg,ep,ev,re,r,rp)
local ce=e:GetLabelObject()
if ce then ce:SetValue(tp) end
function c45247637.retop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(45247637,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,0,1)
end
function c45247637.cop2(e,tp,eg,ep,ev,re,r,rp)
local ce=e:GetLabelObject()
if ce then ce:SetValue(1-tp) end
function c45247637.ctcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(45247637)==0
end
function c45247637.ctval(e,c)
return e:GetHandlerPlayer()
......
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