Commit 377781b6 authored by salix5's avatar salix5 Committed by GitHub

add Auxiliary.EPDestroyOperation() (#2093)

parent 0ed4c2d8
......@@ -47,7 +47,7 @@ function c1845204.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetLabelObject(tc)
e2:SetCondition(c1845204.descon)
e2:SetOperation(c1845204.desop)
e2:SetOperation(aux.EPDestroyOperation)
Duel.RegisterEffect(e2,tp)
end
end
......@@ -60,7 +60,3 @@ function c1845204.descon(e,tp,eg,ep,ev,re,r,rp)
return false
end
end
function c1845204.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.Destroy(tc,REASON_EFFECT)
end
......@@ -51,7 +51,7 @@ function c22993208.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetLabelObject(tc)
e3:SetCondition(c22993208.descon)
e3:SetOperation(c22993208.desop)
e3:SetOperation(aux.EPDestroyOperation)
Duel.RegisterEffect(e3,tp)
end
Duel.SpecialSummonComplete()
......@@ -65,7 +65,3 @@ function c22993208.descon(e,tp,eg,ep,ev,re,r,rp)
return false
end
end
function c22993208.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.Destroy(tc,REASON_EFFECT)
end
......@@ -44,7 +44,7 @@ function c65450690.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetLabelObject(tc)
e2:SetCondition(c65450690.descon)
e2:SetOperation(c65450690.desop)
e2:SetOperation(aux.EPDestroyOperation)
Duel.RegisterEffect(e2,tp)
end
end
......@@ -57,7 +57,3 @@ function c65450690.descon(e,tp,eg,ep,ev,re,r,rp)
return false
end
end
function c65450690.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.Destroy(tc,REASON_EFFECT)
end
......@@ -3169,3 +3169,8 @@ function Auxiliary.RemoveOperation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
--The operation function of "destroy during End Phase"
function Auxiliary.EPDestroyOperation(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.Destroy(tc,REASON_EFFECT,LOCATION_GRAVE,tc:GetControler())
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