--Shya Young Love function c11000532.initial_effect(c) --atklimit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) c:RegisterEffect(e1) --draw local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(11000532,0)) e2:SetCategory(CATEGORY_DRAW) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_TO_GRAVE) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetCountLimit(1,11000532) e2:SetCondition(c11000532.condition) e2:SetTarget(c11000532.drtg) e2:SetOperation(c11000532.drop) c:RegisterEffect(e2) --special summon local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetCode(EFFECT_SPSUMMON_PROC) e3:SetRange(LOCATION_GRAVE) e3:SetProperty(EFFECT_FLAG_UNCOPYABLE) e3:SetTargetRange(POS_FACEUP_DEFENSE,0) e3:SetCountLimit(1,11000532) e3:SetCondition(c11000532.spcon) c:RegisterEffect(e3) end function c11000532.condition(e,tp,eg,ep,ev,re,r,rp) return (e:GetHandler():IsReason(REASON_COST) and (re:GetHandler():IsSetCard(0x1FD) or re:GetHandler():IsCode(11000525))) or ((re:GetHandler():IsSetCard(0x1FD) or re:GetHandler():IsCode(11000525)) and bit.band(r,REASON_EFFECT)~=0) and not e:GetHandler():IsReason(REASON_BATTLE) end function c11000532.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_RECOVER,0,0,1-tp,1000) end function c11000532.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) if Duel.Draw(p,d,REASON_EFFECT) then Duel.BreakEffect() Duel.Recover(1-tp,1000,REASON_EFFECT) end end function c11000532.cfilter(c) return c:IsFacedown() or not c:IsSetCard(0x1FD) end function c11000532.spcon(e,c) if c==nil then return true end local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)>0 and not Duel.IsExistingMatchingCard(c11000532.cfilter,tp,LOCATION_MZONE,0,1,nil) end