Commit 85561442 authored by Tachibana's avatar Tachibana

ndyd

parent e8225f4d
--数码兽大冒险
--リンク・パーティー
function c50221205.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......@@ -7,9 +6,29 @@ function c50221205.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,50221205+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c50221205.cost)
e1:SetTarget(c50221205.target)
e1:SetOperation(c50221205.activate)
c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(50221205,ACTIVITY_SPSUMMON,c50221205.counterfilter)
end
function c50221205.counterfilter(c)
return c:IsSetCard(0xcb1)
end
function c50221205.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(50221205,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
e1:SetLabelObject(e)
e1:SetTarget(c50221205.splimit)
Duel.RegisterEffect(e1,tp)
end
function c50221205.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xcb1)
end
function c50221205.filter(c)
return c:IsFaceup() and c:IsSetCard(0xcb1)
......
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