Commit 8888fedf authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Token Collector (#1885)

parent d7486e75
--トークンコレクター --トークンコレクター
function c43534808.initial_effect(c) function c43534808.initial_effect(c)
--same effect send this card to grave and spsummon another card check
local e0=aux.AddThisCardInGraveAlreadyCheck(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(43534808,0)) e1:SetDescription(aux.Stringid(43534808,0))
...@@ -9,6 +11,7 @@ function c43534808.initial_effect(c) ...@@ -9,6 +11,7 @@ function c43534808.initial_effect(c)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,43534808) e1:SetCountLimit(1,43534808)
e1:SetLabelObject(e0)
e1:SetCondition(c43534808.spcon) e1:SetCondition(c43534808.spcon)
e1:SetTarget(c43534808.sptg) e1:SetTarget(c43534808.sptg)
e1:SetOperation(c43534808.spop) e1:SetOperation(c43534808.spop)
...@@ -33,8 +36,12 @@ function c43534808.initial_effect(c) ...@@ -33,8 +36,12 @@ function c43534808.initial_effect(c)
e3:SetTarget(c43534808.sumlimit) e3:SetTarget(c43534808.sumlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c43534808.cfilter(c,se)
return c:IsType(TYPE_TOKEN) and (se==nil or c:GetReasonEffect()~=se)
end
function c43534808.spcon(e,tp,eg,ep,ev,re,r,rp) function c43534808.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsType,1,nil,TYPE_TOKEN) local se=e:GetLabelObject():GetLabelObject()
return eg:IsExists(c43534808.cfilter,1,nil,se)
end end
function c43534808.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c43534808.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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