Commit 692c2e0f authored by mercury233's avatar mercury233 Committed by GitHub

fix EXP

parent d13eac37
......@@ -4,9 +4,13 @@ function c58308221.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c58308221.target)
e1:SetOperation(c58308221.activate)
c:RegisterEffect(e1)
end
function c58308221.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,58308221)==0 end
end
function c58308221.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
......@@ -19,6 +23,7 @@ function c58308221.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c58308221.pendvalue)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,58308221,RESET_PHASE+PHASE_END,0,1)
end
function c58308221.pendvalue(e,c)
return c:IsLocation(LOCATION_EXTRA)
......
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