Commit 9e6fff36 authored by fallenstardust's avatar fallenstardust
parents 1d3ec404 904982eb
No preview for this file type
--Veidos Der Drache Der Endlosen Finsternis --Veidos Der Drache Der Endlosen Finsternis
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) 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() c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -71,9 +71,9 @@ function s.costfilter(c) ...@@ -71,9 +71,9 @@ function s.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1ad) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsSetCard(0x1ad) and c:IsAbleToGraveAsCost()
end end
function s.descost2(e,tp,eg,ep,ev,re,r,rp,chk) 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) 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) Duel.SendtoGrave(g,REASON_COST)
end end
function s.destg2(e,tp,eg,ep,ev,re,r,rp,chk) 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) ...@@ -88,5 +88,5 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.eftg(e,c) function s.eftg(e,c)
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x2ae) return c:IsSetCard(0x2ae)
end 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