Commit 9e6fff36 authored by fallenstardust's avatar fallenstardust
parents 1d3ec404 904982eb
Pipeline #26127 passed with stages
in 58 seconds
No preview for this file type
--Veidos Der Drache Der Endlosen Finsternis
local s,id,o=GetID()
function s.initial_effect(c)
aux.AddFusionProcCodeFun(c,78783557,s.ffilter,2,true,true)
aux.AddFusionProcCodeFunRep(c,78783557,s.ffilter,2,127,true,true)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -71,9 +71,9 @@ function s.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1ad) and c:IsAbleToGraveAsCost()
end
function s.descost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_ONFIELD,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_ONFIELD,0,1,re:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_ONFIELD,0,1,1,re:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function s.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -88,5 +88,5 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
end
function s.eftg(e,c)
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x2ae)
return c:IsSetCard(0x2ae)
end
\ No newline at end of file
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