RushDuel.CostSendDeckBottomToGrave
Alias: RD.CostSendDeckBottomToGrave. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.CostSendDeckBottomToGrave(any count, any set_label, any set_object) -> anyDescription
Rush Duel helper declared in RDCost.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
代价: 从卡组下面把卡送去墓地Parameters
countany: Type and behavior are not yet reviewed; see the source.set_labelany: Type and behavior are not yet reviewed; see the source.set_objectany: Type and behavior are not yet reviewed; see the source.
Returns
any: Return contract has not been reviewed; inspect the source below.
Source
Rush/Utilities/RDCost.lua:274
lua
function RushDuel.CostSendDeckBottomToGrave(count, set_label, set_object)
return function(e, tp, eg, ep, ev, re, r, rp, chk)
if chk == 0 then
return Duel.IsPlayerCanDiscardDeckAsCost(tp, count)
end
local dg = RushDuel.GetDeckBottomGroup(tp, count)
Duel.DisableShuffleCheck()
if Duel.SendtoGrave(dg, REASON_COST) ~= 0 and (set_label ~= nil or set_object ~= nil) then
local og = Duel.GetOperatedGroup()
RushDuel.SetLabelAndObject(e, og, set_label, set_object)
end
return true
end
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 2 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.CostSendDeckBottomToGrave.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Neo Plandish | 120228035 | Rush/Scripts/c120228035.lua | 1 |
| Attrac Charm Midi | 120309056 | Rush/Scripts/c120309056.lua | 1 |
Script Examples
Neo Plandish (120228035)
Source: Rush/Scripts/c120228035.lua
lua
return RD.IsCanAttachEffectIndes(e:GetHandler(),tp,cm.indval)
end
cm.cost=RD.CostSendDeckBottomToGrave(1,function(g)
return g:GetFirst():GetRace()
end)Attrac Charm Midi (120309056)
Source: Rush/Scripts/c120309056.lua
lua
end
--Union
cm.cost=RD.CostSendDeckBottomToGrave(2)