Red-Reboot Enhanced Boost Dragon
- Card ID:
120253037 - Format: Rush Duel
- Script:
Rush/Scripts/c120253037.lua
Stats
| Field | Value |
|---|---|
| Type | 0x61 |
| ATK | 2800 |
| DEF | 2500 |
| Level/Rank/Link | 0x9 |
| Race | 0x2000 |
| Attribute | 0x20 |
| Category | 0x602400 |
Card Text
text
"Red-Boot Boost Dragon" + "Darkness Drake"
[REQUIREMENT]
Shuffle 1 monster from your Graveyard into the Deck.
[EFFECT]
Choose up to 3 DARK Attribute monsters in your Graveyard. Inflict damage to your opponent equal to [the total Levels of the monsters chosen] x 100, and this card gains ATK equal to [the total Levels of the monsters chosen] x 100 until the end of this turn. Then, shuffle the chosen monsters into the Deck.Detected API Calls
Auxiliary.NecroValleyFilterAuxiliary.StringidCard.GetLevelCard.IsAbleToDeckCard.IsAbleToDeckOrExtraAsCostCard.IsAttributeCard.IsFaceupCard.IsLevelAboveCard.IsRelateToEffectCard.IsTypeCard.RegisterEffectDuel.BreakEffectDuel.DamageDuel.IsExistingMatchingCardDuel.SetOperationInfoEffect.CreateEffectEffect.GetHandlerEffect.SetCategoryEffect.SetCostEffect.SetDescriptionEffect.SetOperationEffect.SetRangeEffect.SetTargetEffect.SetTypeGroup.GetSumRushDuel.AddCodeListRushDuel.AddFusionProcedureRushDuel.AttachAtkDefRushDuel.CostSendGraveToDeckRushDuel.SelectAndDoActionRushDuel.SendToDeckAndExists
Script
lua
local cm,m=GetID()
local list={120225001,120253001}
cm.name="重红动超越击速龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[2])
--Damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_ATKCHANGE+CATEGORY_TODECK+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Damage
function cm.costfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,c)
end
function cm.filter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLevelAbove(1) and c:IsAbleToDeck()
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,100)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),tp,LOCATION_GRAVE,0,1,3,nil,function(g)
local ct=g:GetSum(Card.GetLevel)
local c=e:GetHandler()
if Duel.Damage(1-tp,ct*100,REASON_EFFECT)~=0 and c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachAtkDef(e,c,ct*100,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
Duel.BreakEffect()
RD.SendToDeckAndExists(g,e,tp,REASON_EFFECT)
end
end)
end