--Cursilver Artefact of Demise local s,id=GetID() function s.initial_effect(c) --You can only control 1 "Cursilver Artifact of Demise". c:SetUniqueOnField(1,0,id) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --During the Main Phase: You can target 2 cards on the field, including a "Cursilver" monster you control; destroy them. local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) e2:SetCategory(CATEGORY_DESTROY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_FREE_CHAIN) e2:SetCountLimit(1,id) e2:SetHintTiming(0,TIMING_MAIN_END) e2:SetCondition(s.condition) e2:SetTarget(s.target) e2:SetOperation(s.operation) c:RegisterEffect(e2) --All monsters your opponent controls lose 100 ATK/DEF for each "Cursilver" card on the field and in the GYs. local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetRange(LOCATION_SZONE) e3:SetTargetRange(0,LOCATION_MZONE) e3:SetValue(s.atkval) c:RegisterEffect(e3) local e4=e3:Clone() e4:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e4) end function s.atkval(e,c) local LOCATIONS=LOCATION_GRAVE+LOCATION_MZONE+LOCATION_FZONE+LOCATION_SZONE return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,0xc72),0,LOCATIONS,LOCATIONS,nil)*-100 end function s.condition(e,tp) return Duel.IsMainPhase() and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xc72),tp,LOCATION_MZONE,0,1,nil) end function s.filter(c) return c:IsFaceup() and c:IsSetCard(0xc72) and c:IsMonster() and Duel.IsExistingTarget(aux.TRUE,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g1=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g2=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,g1:GetFirst()) g1:Merge(g2) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,#g1,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) Duel.Destroy(g,REASON_EFFECT) end