--Luka local ref=_G['c'..28916162] local id=28916162 function ref.initial_effect(c) --Pierce face-down local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetRange(LOCATION_MZONE) e2:SetCondition(ref.atkcon) e2:SetOperation(ref.atkop) c:RegisterEffect(e2) --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) e1:SetCondition(ref.sscon) e1:SetCost(ref.sscost) e1:SetTarget(ref.sstg) e1:SetOperation(ref.ssop) c:RegisterEffect(e1) end --Pierce face-down function ref.atkcon(e) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() return a and d and a:IsSetCard(0x740) and d:IsControler(1-e:GetHandlerPlayer()) and d:IsFacedown() end function ref.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_PIERCE) e2:SetRange(LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTarget(ref.atktg) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) c:RegisterEffect(e2) end function ref.atktg(e,c) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() return a and d and a:IsSetCard(0x740) and d:IsControler(1-e:GetHandlerPlayer()) end --Special Summon function ref.sscfilter(c,tc) return c:IsFaceup() and c:IsSetCard(1856) and c:GetCode()~=tc:GetCode() end function ref.sscon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return Duel.IsExistingMatchingCard(ref.sscfilter,tp,LOCATION_ONFIELD,0,1,c,c) end function ref.ssfilter(c,e,tp) return c:IsSetCard(1856) and c:IsLevelAbove(6) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function ref.sscost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsCanTurnSet() end Duel.ChangePosition(c,POS_FACEDOWN_DEFENSE) end function ref.sstg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(ref.ssfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_DECK+LOCATION_HAND) end function ref.ssop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,ref.ssfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) if g:GetCount()>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end