--Divinità Bushido Drago Lux --Scripted by: XGlitchy30 local s,id = GetID() function s.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x4b0),3,true) c:MustFirstBeSummoned(SUMMON_TYPE_FUSION) --protection local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e0:SetCode(EFFECT_IMMUNE_EFFECT) e0:SetRange(LOCATION_MZONE) e0:SetValue(s.efilter) c:RegisterEffect(e0) --negate c:SummonedTrigger(false,false,true,false,0,CATEGORY_DISABLE,EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DD,true,aux.FusionSummonedCond,nil,s.distg,s.disop) --double stats local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetRange(LOCATION_MZONE) e2:SetCode(EFFECT_SET_ATTACK_FINAL) e2:SetCondition(s.atkcon) e2:SetValue(s.atkval) c:RegisterEffect(e2) local e2x=e2:Clone() e2x:SetCode(EFFECT_SET_DEFENSE_FINAL) e2x:SetValue(s.defval) c:RegisterEffect(e2x) --negate c:CreateNegateEffect(true,1,TYPE_SPELL+TYPE_TRAP,1,nil,true,s.negcon,aux.BanishCost(aux.MonsterFilter(Card.IsSetCard,0x4b0),LOCATION_HAND+LOCATION_GRAVE,0,2,2),nil,CATEGORY_DESTROY) end function s.efilter(e,te) local tc=te:GetOwner() return te:IsActiveType(TYPE_MONSTER) and te:GetOwnerPlayer()==1-e:GetHandlerPlayer() and (tc:IsSummonType(SUMMON_TYPE_SPECIAL) or te:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)) end function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and aux.NegateMonsterFilter(chkc) end if chk==0 then return Duel.IsExistingTarget(aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) local g=Duel.SelectTarget(tp,aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,#g,1-tp,LOCATION_MZONE) end function s.disop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToChain() and tc:IsFaceup() and not tc:IsDisabled() then Duel.Negate(tc,e) end end function s.filter(c) return c:IsFaceup() and c:IsSetCard(0x4b0) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_EXTRA) end function s.atkcon(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) end function s.atkval(e,c) return e:GetHandler():GetAttack()*2 end function s.defval(e,c) return e:GetHandler():GetDefense()*2 end function s.negcon(e,tp,eg,ep,ev,re,r,rp) return re:IsHasCategory(CATEGORY_SPECIAL_SUMMON) end