--Gearfried,The Dark Knight Red-Eyes function c36429103.initial_effect(c) --link summon aux.AddLinkProcedure(c,c36429103.matfilter,2,2) c:EnableReviveLimit() --link summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(36429103,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,36429103) e1:SetCondition(c36429103.lkcon) e1:SetTarget(c36429103.lktg) e1:SetOperation(c36429103.lkop) c:RegisterEffect(e1) --indes local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_BE_MATERIAL) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetCondition(c36429103.indcon) e2:SetOperation(c36429103.indop) c:RegisterEffect(e2) end function c36429103.lkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp end function c36429103.lktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,nil,e:GetHandler()) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end function c36429103.lkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsControler(1-tp) or not c:IsRelateToEffect(e) then return end local g=Duel.GetMatchingGroup(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,nil,nil,c) if g:GetCount()>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,1,1,nil) Duel.LinkSummon(tp,sg:GetFirst(),nil,c) end end function c36429103.indcon(e,tp,eg,ep,ev,re,r,rp) return r==REASON_LINK end function c36429103.indop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local rc=c:GetReasonCard() local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(36429103,1)) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetValue(c36429103.indval) e1:SetOwnerPlayer(ep) e1:SetReset(RESET_EVENT+RESETS_STANDARD) rc:RegisterEffect(e1,true) end function c36429103.indval(e,re,rp) return rp==1-e:GetOwnerPlayer() end