Skip to content

RushDuel.IsPlayerNoDrawInThisMain ​

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

Signature ​

lua
RushDuel.IsPlayerNoDrawInThisMain(any player) -> any

Description ​

Rush Duel helper declared in RDCondition.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.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDCondition.lua:73

lua
function RushDuel.IsPlayerNoDrawInThisMain(player)
    return Duel.GetFlagEffect(player, FLAG_HAS_DRAW_IN_MAIN_PHASE) == 0
end

Used By ​

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

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsPlayerNoDrawInThisMain.
CardIDScriptDetected Calls
Moonforce Rifet120300012Rush/Scripts/c120300012.lua1
Executie Mates120283050Rush/Scripts/c120283050.lua1
Cosmic Sucker120294021Rush/Scripts/c120294021.lua2
Speed Roll120301063Rush/Scripts/c120301063.lua1
Pliage the Sacred Shooting Star120274069Rush/Scripts/c120274069.lua1
Winged Dragon of Chaos120280006Rush/Scripts/c120280006.lua1
Plasmatic Model Lenoir120285021Rush/Scripts/c120285021.lua1
Rolling x Rolling120294048Rush/Scripts/c120294048.lua1
Innocent Fadrawl120261037Rush/Scripts/c120261037.lua1

Script Examples ​

Moonforce Rifet (120300012) ​

Source: Rush/Scripts/c120300012.lua

lua
	if RD.SendDeckTopToGraveAndExists(1-tp,2)
		and Duel.IsExistingMatchingCard(cm.confilter,tp,0,LOCATION_GRAVE,5,nil)
		and RD.IsPlayerNoDrawInThisMain(tp) then
		RD.CanDraw(aux.Stringid(m,1),tp,2,true)
	end

Executie Mates (120283050) ​

Source: Rush/Scripts/c120283050.lua

lua
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.AttachLevel(e,c,2,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		if RD.IsPlayerNoDrawInThisMain(tp) then
			RD.CanDraw(aux.Stringid(m,1),tp,1)
		end

Cosmic Sucker (120294021) ​

Source: Rush/Scripts/c120294021.lua

lua
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return not RD.IsPlayerNoDrawInThisMain(tp) or Duel.IsPlayerCanDraw(tp,1) end
	RD.TargetRecover(tp,300)
end