--AoJ - L'Entità --Script by XGlitchy30 function c19772608.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x197),2) --Attribute Dark local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e0:SetCode(EFFECT_ADD_ATTRIBUTE) e0:SetRange(LOCATION_MZONE) e0:SetValue(ATTRIBUTE_DARK) c:RegisterEffect(e0) --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:SetCondition(c19772608.immunecon) e1:SetValue(c19772608.immune) c:RegisterEffect(e1) local e11=Effect.CreateEffect(c) e11:SetType(EFFECT_TYPE_SINGLE) e11:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e11:SetRange(LOCATION_MZONE) e11:SetCode(EFFECT_UNRELEASABLE_SUM) e11:SetCondition(c19772608.immunecon) e11:SetValue(1) c:RegisterEffect(e11) local e111=e11:Clone() e111:SetCode(EFFECT_UNRELEASABLE_NONSUM) c:RegisterEffect(e111) --draw local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(19772608,0)) e2:SetCategory(CATEGORY_DRAW+CATEGORY_DAMAGE) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1,19772608) e2:SetCost(c19772608.dwcost) e2:SetTarget(c19772608.dwtg) e2:SetOperation(c19772608.dwop) c:RegisterEffect(e2) end --filters --immune function c19772608.immunecon(e,tp,eg,ep,ev,re,r,rp) local lg=e:GetHandler():GetMutualLinkedGroup() return lg:IsExists(Card.IsCode,1,nil,19772606) end function c19772608.immune(e,re) return re:GetOwnerPlayer()~=e:GetHandlerPlayer() end --draw function c19772608.dwcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,1000) end Duel.PayLPCost(tp,1000) end function c19772608.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 c19772608.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 Duel.Damage(1-tp,1500,REASON_EFFECT) end Duel.ShuffleHand(tp) end end