Brassdes of the Wicked Wheels
- Card ID:
120304033 - Format: Rush Duel
- Script:
Rush/Scripts/c120304033.lua
Stats
| Field | Value |
|---|---|
| Type | 0x21 |
| ATK | 0 |
| DEF | 0 |
| Level/Rank/Link | 0x3 |
| Race | 0x8 |
| Attribute | 0x20 |
| Category | 0x42400 |
Card Text
text
You can Special Summon this card from your hand face-up to your field by sending 1 monster from your field to the Graveyard.
[REQUIREMENT]
During your Main Phase that you Special Summoned this card, send the top 3 cards of your Deck to the Graveyard.
[EFFECT]
This card gains 2000 ATK until the end of your opponent's next turn. Then, you can add 1 "Brassdes Trap Hole" from your Graveyard to your hand.Detected API Calls
Auxiliary.NecroValleyFilterAuxiliary.StringidCard.GetControlerCard.IsAbleToGraveAsCostCard.IsAbleToHandCard.IsCodeCard.IsFaceupCard.IsRelateToEffectCard.RegisterEffectDuel.BreakEffectDuel.GetMZoneCountDuel.GetMatchingGroupDuel.HintDuel.IsExistingMatchingCardDuel.SendtoGraveEffect.CreateEffectEffect.GetHandlerEffect.GetLabelObjectEffect.SetCategoryEffect.SetConditionEffect.SetCostEffect.SetDescriptionEffect.SetLabelObjectEffect.SetOperationEffect.SetRangeEffect.SetTypeGroup.SelectUnselectRushDuel.AddCodeListRushDuel.AddHandSpecialSummonProcedureRushDuel.AttachAtkDefRushDuel.CanSelectAndDoActionRushDuel.CostSendDeckTopToGraveRushDuel.IsSpecialSummonMainPhaseRushDuel.SendToHandAndExists
Script
lua
local cm,m=GetID()
local list={120304064}
cm.name="讹魔欺乘之不老实蒂斯"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon Procedure
RD.AddHandSpecialSummonProcedure(c,aux.Stringid(m,0),cm.spcon,cm.sptg,cm.spop)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Special Summon Procedure
function cm.spconfilter(c,tp)
return c:IsAbleToGraveAsCost() and Duel.GetMZoneCount(tp,c)>0
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.spconfilter,tp,LOCATION_MZONE,0,1,nil,tp)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=Duel.GetMatchingGroup(cm.spconfilter,tp,LOCATION_MZONE,0,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tc=mg:SelectUnselect(nil,tp,false,true,1,1)
if tc then
e:SetLabelObject(tc)
return true
else
return false
end
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=e:GetLabelObject()
Duel.SendtoGrave(tc,REASON_SPSUMMON)
end
--Atk Up
function cm.thfilter(c)
return c:IsCode(list[1]) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSpecialSummonMainPhase(e:GetHandler())
end
cm.cost=RD.CostSendDeckTopToGrave(3)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachAtkDef(e,c,2000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
Duel.BreakEffect()
RD.SendToHandAndExists(g,e,tp,REASON_EFFECT)
end)
end
end