RushDuel.SendDeckTopToGraveAndExists
Alias: RD.SendDeckTopToGraveAndExists. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.SendDeckTopToGraveAndExists(any player, any card_count, any filter, any count, any expect) -> anyDescription
Rush Duel helper declared in RDAction.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
操作: 从卡组上面把卡送去墓地Parameters
playerany: Type and behavior are not yet reviewed; see the source.card_countany: Type and behavior are not yet reviewed; see the source.filterany: Type and behavior are not yet reviewed; see the source.countany: Type and behavior are not yet reviewed; see the source.expectany: 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/RDAction.lua:304
lua
function RushDuel.SendDeckTopToGraveAndExists(player, card_count, filter, count, expect)
return Duel.DiscardDeck(player, card_count, REASON_EFFECT) ~= 0 and RushDuel.IsOperatedGroupExists(filter, count, expect)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 120 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.SendDeckTopToGraveAndExists.
Script Examples
Vapor Lancer the Super Graphagas (120260063)
Source: Rush/Scripts/c120260063.lua
lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.SendDeckTopToGraveAndExists(tp,3) then
local g=Duel.GetOperatedGroup():Filter(cm.exfilter,nil)
local ct=g:GetClassCount(Card.GetRace)Shannah the Clad Dragon Researcher (120304017)
Source: Rush/Scripts/c120304017.lua
lua
if RD.ChangePosition(g,e,tp,REASON_EFFECT,POS_FACEDOWN_DEFENSE) then
Duel.BreakEffect()
if RD.SendDeckTopToGraveAndExists(tp,1,cm.exfilter,1,nil) then
local tc=Duel.GetOperatedGroup():GetFirst()
if Duel.SelectEffectYesNo(tp,tc,aux.Stringid(m,1)) thenDaigyakutenno Megami (120203019)
Source: Rush/Scripts/c120203019.lua
lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
if RD.Draw()~=0 and RD.SendDeckTopToGraveAndExists(p,1,cm.exfilter,1,nil) then
local tc=Duel.GetOperatedGroup():GetFirst()
local filter=RD.Filter(cm.desfilter,tc:GetRace())