RushDuel.DiscardDeck
Alias: RD.DiscardDeck. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.DiscardDeck(any player, any count) -> anyDescription
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
playerany: Type and behavior are not yet reviewed; see the source.countany: 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)
endUsed 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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Insect Taurus | 120300060 | Rush/Scripts/c120300060.lua | 1 |
| Tama Tama Gachance | 120109053 | Rush/Scripts/c120109053.lua | 1 |
| Music Princess's Substitute | 120290043 | Rush/Scripts/c120290043.lua | 1 |
| Temporary Storm Blockade | 120203030 | Rush/Scripts/c120203030.lua | 1 |
| Best Bite | 120183048 | Rush/Scripts/c120183048.lua | 1 |
| Darkness Fource Seeker | 120217007 | Rush/Scripts/c120217007.lua | 1 |
| Royal Rebel's Starting | 120306045 | Rush/Scripts/c120306045.lua | 1 |
| Destructor Survey | 120247053 | Rush/Scripts/c120247053.lua | 1 |
| Wolftastic Mean Mutt | 120222050 | Rush/Scripts/c120222050.lua | 1 |
| Rising Light Angel Essel | 120249037 | Rush/Scripts/c120249037.lua | 1 |
| Cat-trois Choice | 120249055 | Rush/Scripts/c120249055.lua | 1 |
| Hungry Donut | 120290020 | Rush/Scripts/c120290020.lua | 1 |
| Vande the Electric Lion | 120257019 | Rush/Scripts/c120257019.lua | 1 |
| Heavenly Invitation | 120239054 | Rush/Scripts/c120239054.lua | 1 |
| Meteor Larva | 120227019 | Rush/Scripts/c120227019.lua | 1 |
| Psychic Burial | 120160004 | Rush/Scripts/c120160004.lua | 1 |
| Heat Hyena | 120183032 | Rush/Scripts/c120183032.lua | 1 |
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)
endMusic 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)