--Cursilver Dragon of the Adverse Doom local s,id=GetID() function s.initial_effect(c) --You can Special Summon this card (from your hand) by Tributing 2 "Cursilver" monsters. local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(s.spcon) e1:SetTarget(s.sptg) e1:SetOperation(s.spop) c:RegisterEffect(e1) --While you control "Cursilver Sword of Endless Pain", your opponent cannot target this card with card effects. local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetRange(LOCATION_MZONE) e2:SetCondition(s.econ) e2:SetValue(s.efilter) c:RegisterEffect(e2) --(Quick Effect): You can Tribute 1 other card you control, then target 1 monster your opponent controls; banish it, and if you do, inflict damage to them equal to that monster's Level x 100. local e3=Effect.CreateEffect(c) e3:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetRange(LOCATION_MZONE) e3:SetCode(EVENT_FREE_CHAIN) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCountLimit(1,id) e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e3:SetCost(s.cost) e3:SetTarget(s.target) e3:SetOperation(s.operation) c:RegisterEffect(e3) end function s.fselect(g,tp) return g:IsExists(Card.IsSetCard,2,nil,0xc72) and aux.mzctcheckrel(g,tp) end function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON) return rg:CheckSubGroup(s.fselect,2,2,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local sg=rg:SelectSubGroup(tp,s.fselect,true,2,2,tp) if sg then sg:KeepAlive() e:SetLabelObject(sg) return true else return false end end function s.spop(e,tp,eg,ep,ev,re,r,rp,c) local g=e:GetLabelObject() Duel.Release(g,REASON_SPSUMMON) g:DeleteGroup() end function s.econ(e) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,100000178),e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,e:GetHandler()) end function s.efilter(e,re,tp) return re:GetOwnerPlayer()~=e:GetHandlerPlayer() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,c,tp) or Duel.IsExistingMatchingCard(Card.IsReleasable,tp,LOCATION_SZONE,0,1,c) end local sg local b1=Duel.CheckReleaseGroup(tp,nil,1,c,tp) local b2=Duel.IsExistingMatchingCard(Card.IsReleasable,tp,LOCATION_SZONE,0,1,c) local opt=aux.Option(tp,100000177,2,b1,b2) if opt==1 then Duel.HintMessage(tp,HINTMSG_RELEASE) sg=Duel.SelectMatchingCard(tp,Card.IsReleasable,tp,LOCATION_SZONE,0,1,1,c) else sg=Duel.SelectReleaseGroup(tp,nil,1,1,c,tp) end Duel.Release(sg,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local g=Duel.SelectTarget(tp,nil,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,g:GetFirst():GetLevel()*100) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if not (tc:IsRelateToEffect(e) and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 and tc:IsLocation(LOCATION_REMOVED)) then return end Duel.Damage(1-tp,tc:GetLevel()*100,REASON_EFFECT) end