--Cursilver Lands of Evil local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --While you control "Cursilver Lord Spreader of Despair" equipped with "Cursilver Sword of Endless Pain", each time your opponent activates a monster effect, --inflict damage to them equal to that monster's Level x 100 immediately after it resolves. local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_CHAINING) e2:SetRange(LOCATION_FZONE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetOperation(aux.chainreg) c:RegisterEffect(e2) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetCode(EVENT_CHAIN_SOLVED) e3:SetRange(LOCATION_FZONE) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCondition(s.damcon) e3:SetOperation(s.damop) c:RegisterEffect(e3) --During your Main Phase: You can add 1 Level 4 or lower "Cursilver" monster from your Deck to your hand, also take damage equal to its Level x 100, then place 1 card from your hand on the bottom of the Deck. local e4=Effect.CreateEffect(c) e4:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND+CATEGORY_SEARCH) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_FZONE) e4:SetCountLimit(1,id) e4:SetTarget(s.thtg) e4:SetOperation(s.thop) c:RegisterEffect(e4) end function s.thfilter(c) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xc72) and c:IsAbleToHand() and c:IsLevelBelow(4) end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND) end function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then Duel.ConfirmCards(1-tp,g) Duel.Damage(tp,g:GetFirst():GetLevel()*100,REASON_EFFECT) Duel.ShuffleHand(tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil) if #g2>0 then Duel.BreakEffect() Duel.ShuffleDeck(tp) Duel.SendtoDeck(g2,nil,SEQ_DECKBOTTOM,REASON_EFFECT) end end end function s.filter(c) return c:IsFaceup() and c:IsCode(100000177) and c:GetEquipGroup():IsExists(Card.IsCode,1,nil,100000178) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and ep==1-tp and re:IsActiveType(TYPE_MONSTER) and c:GetFlagEffect(1)~=0 end function s.damop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() Duel.Hint(HINT_CARD,0,id) Duel.Damage(1-tp,re:GetHandler():GetLevel()*100,REASON_EFFECT) end