--AoJ - La Forza --Script by XGlitchy30 function c19772606.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x197),2) --immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(c19772606.immune) c:RegisterEffect(e1) --atk local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetRange(LOCATION_MZONE) e2:SetCondition(c19772606.atkcon) e2:SetValue(c19772606.atkval) c:RegisterEffect(e2) --draw local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(19772606,0)) e3:SetCategory(CATEGORY_DRAW+CATEGORY_REMOVE) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,19772606) e3:SetCost(c19772606.dwcost) e3:SetTarget(c19772606.dwtg) e3:SetOperation(c19772606.dwop) c:RegisterEffect(e3) end --filters --immune function c19772606.immune(e,te) return te:GetOwner()~=e:GetOwner() end --atk function c19772606.atkcon(e,tp,eg,ep,ev,re,r,rp) local lg=e:GetHandler():GetMutualLinkedGroup() return lg:IsExists(Card.IsCode,1,nil,19772609) end function c19772606.atkval(e,c) return c:GetLinkedGroupCount()*500 end --draw function c19772606.dwcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,e:GetHandler()) end Duel.DiscardHand(tp,Card.IsAbleToGraveAsCost,1,1,REASON_COST) end function c19772606.dwtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function c19772606.dwop(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)~=0 then local tc=Duel.GetOperatedGroup():GetFirst() Duel.ConfirmCards(1-tp,tc) if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(0x197) then local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,nil) if g:GetCount()>0 then Duel.BreakEffect() local sg=g:Select(tp,1,1,nil) Duel.HintSelection(sg) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) end end Duel.ShuffleHand(tp) end end