Skip to content

RushDuel.DiscardDeck ​

Alias: RD.DiscardDeck. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.DiscardDeck(any player, any count) -> any

Description ​

Rush Duel helper declared in RDTarget.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
对玩家效果: 盲堆 - 结算

Parameters ​

  • player any: Type and behavior are not yet reviewed; see the source.
  • count any: 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/RDTarget.lua:49

lua
function RushDuel.DiscardDeck(player, count)
    local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
    return Duel.DiscardDeck(player or p, count or d, REASON_EFFECT)
end

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.DiscardDeck.
CardIDScriptDetected Calls
Insect Taurus120300060Rush/Scripts/c120300060.lua1
Tama Tama Gachance120109053Rush/Scripts/c120109053.lua1
Music Princess's Substitute120290043Rush/Scripts/c120290043.lua1
Temporary Storm Blockade120203030Rush/Scripts/c120203030.lua1
Best Bite120183048Rush/Scripts/c120183048.lua1
Darkness Fource Seeker120217007Rush/Scripts/c120217007.lua1
Royal Rebel's Starting120306045Rush/Scripts/c120306045.lua1
Destructor Survey120247053Rush/Scripts/c120247053.lua1
Wolftastic Mean Mutt120222050Rush/Scripts/c120222050.lua1
Rising Light Angel Essel120249037Rush/Scripts/c120249037.lua1
Cat-trois Choice120249055Rush/Scripts/c120249055.lua1
Hungry Donut120290020Rush/Scripts/c120290020.lua1
Vande the Electric Lion120257019Rush/Scripts/c120257019.lua1
Heavenly Invitation120239054Rush/Scripts/c120239054.lua1
Meteor Larva120227019Rush/Scripts/c120227019.lua1
Psychic Burial120160004Rush/Scripts/c120160004.lua1
Heat Hyena120183032Rush/Scripts/c120183032.lua1

Script Examples ​

Insect Taurus (120300060) ​

Source: Rush/Scripts/c120300060.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.DiscardDeck()==0 then return end
	local mg=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_GRAVE,0,nil)
	local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)

Tama Tama Gachance (120109053) ​

Source: Rush/Scripts/c120109053.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.DiscardDeck()~=0 and Duel.GetOperatedGroup():IsExists(cm.exfilter,1,nil) then
		RD.CanSelectGroupAndSpecialSummon(aux.Stringid(m,1),aux.NecroValleyFilter(cm.spfilter),cm.spcheck,tp,LOCATION_GRAVE,0,1,3,nil,e,POS_FACEUP,true)
	end

Music Princess's Substitute (120290043) ​

Source: Rush/Scripts/c120290043.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.DiscardDeck()~=0 and Duel.IsExistingMatchingCard(cm.exfilter1,tp,LOCATION_GRAVE,0,1,nil)
		and not Duel.IsExistingMatchingCard(cm.exfilter2,tp,LOCATION_GRAVE,0,1,nil) then
		RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP_DEFENSE,true)