Commit bf0d2714 authored by nekrozar's avatar nekrozar Committed by mercury233

update Link In-Flyer (#912)

parent a6b9064c
--リンク・インフライヤー
--Effect is not fully implemented
function c65100616.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65100616,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,65100616)
e1:SetCondition(c65100616.spcon)
e1:SetOperation(c65100616.spop)
e1:SetValue(c65100616.spval)
c:RegisterEffect(e1)
end
function c65100616.spcon(e,c)
if c==nil then return true end
local tp=e:GetHandlerPlayer()
local tp=c:GetControler()
local zone=Duel.GetLinkedZone(tp)
return zone~=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone)
return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0
end
function c65100616.spop(e,tp,eg,ep,ev,re,r,rp,c)
local zone=Duel.GetLinkedZone(tp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP,zone)
function c65100616.spval(e,c)
return bit.lshift(Duel.GetLinkedZone(c:GetControler()),16)
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