--暗黒方界邪神クリムソン・ノヴァ・トリニティ function c155395.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunFunRep(c,c155395.mfilter1,c155395.mfilter1,2,2,true) --spsummon condition local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e0:SetCode(EFFECT_SPSUMMON_CONDITION) e0:SetValue(aux.fuslimit) c:RegisterEffect(e0) --Change Code local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_CHANGE_CODE) e1:SetRange(LOCATION_GRAVE+LOCATION_MZONE) e1:SetValue(70781052) c:RegisterEffect(e1) --Attack Banish local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(155395,0)) e2:SetCategory(CATEGORY_REMOVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetRange(LOCATION_MZONE) e2:SetTarget(c155395.rmtg) e2:SetOperation(c155395.rmop) c:RegisterEffect(e2) --Target Banish local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(155395,1)) e3:SetCategory(CATEGORY_NEGATE) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e3:SetCode(EVENT_CHAINING) e3:SetRange(LOCATION_MZONE) e3:SetCondition(c155395.negcon) e3:SetTarget(c155395.negtg) e3:SetOperation(c155395.negop) c:RegisterEffect(e3) --immune local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_SINGLE) e4:SetCode(EFFECT_IMMUNE_EFFECT) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e4:SetRange(LOCATION_MZONE) e4:SetValue(c155395.efilter) c:RegisterEffect(e4) end function c155395.filter(c,def) return c:IsFaceup() and c:IsAttackBelow(def) end function c155395.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.IsExistingMatchingCard(c155395.filter,tp,0,LOCATION_MZONE,1,c,c:GetDefense()) end local g=Duel.GetMatchingGroup(c155395.filter,tp,0,LOCATION_MZONE,c,c:GetDefense()) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) end function c155395.rmop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) or c:IsFacedown() then return end local g=Duel.GetMatchingGroup(c155395.filter,tp,0,LOCATION_MZONE,c,c:GetDefense()) local ct=Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end function c155395.cfilter(c,tp) return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(0x45) end function c155395.negcon(e,tp,eg,ep,ev,re,r,rp) if not (rp==1-tp and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)) then return false end local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) return g and g:IsExists(c155395.cfilter,1,nil,tp) end function c155395.negtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0) end function c155395.negop(e,tp,eg,ep,ev,re,r,rp) if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) end end function c155395.efilter(e,te) return te:IsActiveType(TYPE_SPELL) or te:IsActiveType(TYPE_TRAP) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() end function c155395.mfilter1(c) return c:IsFusionCode(70781052) or c:IsFusionSetCard(0x10af) end