--Muscwole Ricardominator local cid,id=GetID() function cid.initial_effect(c) --cannot be target local e7=Effect.CreateEffect(c) e7:SetType(EFFECT_TYPE_SINGLE) e7:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e7:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e7:SetRange(LOCATION_MZONE) e7:SetValue(cid.efilter) c:RegisterEffect(e7) --special summon local e0=Effect.CreateEffect(c) e0:SetCategory(CATEGORY_SPECIAL_SUMMON) e0:SetType(EFFECT_TYPE_IGNITION) e0:SetRange(LOCATION_HAND) e0:SetCountLimit(1,id) e0:SetCondition(cid.spcon) e0:SetCost(cid.spcost) e0:SetTarget(cid.sptg) e0:SetOperation(cid.spop) c:RegisterEffect(e0) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_GRAVE) e1:SetCountLimit(1,id+100) e1:SetCondition(cid.spcon2) c:RegisterEffect(e1) --bounce local e4=Effect.CreateEffect(c) e4:SetCategory(CATEGORY_ATKCHANGE) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetCode(EVENT_FREE_CHAIN) e4:SetRange(LOCATION_MZONE) e4:SetCountLimit(1,id+1000) e4:SetCost(cid.cost) e4:SetTarget(cid.target) e4:SetOperation(cid.operation) c:RegisterEffect(e4) --draw local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_DRAW) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetRange(LOCATION_MZONE) e2:SetCode(EVENT_DESTROYED) e2:SetCountLimit(1,id+10000) e2:SetCondition(cid.drcon) e2:SetTarget(cid.drtg) e2:SetOperation(cid.drop) c:RegisterEffect(e2) end function cid.efilter(e,re,rp) return re:GetHandler():IsType(TYPE_EQUIP) and not re:GetHandler():IsSetCard(0x777) end function cid.filter(c) return c:IsFaceup() and c:IsCode(70070078) end function cid.filter2(c) return c:IsFaceup() and c:IsSetCard(0x777) end function cid.spcon2(e,c) if c==nil then return true end local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cid.filter,tp,LOCATION_FZONE,0,1,nil) and Duel.IsExistingMatchingCard(cid.filter2,tp,LOCATION_MZONE,0,1,nil) end function cid.atk(val) return function(e) return e:GetHandler():IsAttackAbove(val) end end function cid.spcon(e,tp) return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end function cid.rfilter(c) return c:IsSetCard(0x777) and c:IsAbleToRemoveAsCost() end function cid.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(cid.rfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,e:GetHandler()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,cid.rfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,e:GetHandler()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function cid.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function cid.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end function cid.cost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsAttackAbove(2400) end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(-700) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end function cid.thfilter(c) return c:IsAbleToHand() end function cid.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and cid.thfilter(chkc,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cid.thfilter,tp,0,LOCATION_ONFIELD,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_ONFIELD) end function cid.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) local g=Duel.SelectMatchingCard(tp,cid.thfilter,tp,0,LOCATION_ONFIELD,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) end end function cid.cfilter(c,tp) return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and c:IsSetCard(0x777) end function cid.drcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(cid.cfilter,1,nil,tp) and rp==1-tp end function cid.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function cid.drop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) end