Skip to content

Auxiliary.IsPlayerCanNormalDraw ​

Signature ​

lua
Auxiliary.IsPlayerCanNormalDraw(int tp) -> bool

Description ​

Checks whether tp can perform a normal draw: draw count is positive, the Deck is not empty, and FLAG_ID_NO_NORMAL_DRAW is not set.

Parameters ​

  • tp int

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:1859

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.IsPlayerCanNormalDraw.
CardIDScriptDetected Calls
Rank-Up-Magic Astral Force45950291Scripts/c45950291.lua1
Black Luster Soldier - Legendary Swordsman70551291Scripts/c70551291.lua2
Legacy of the Duelist88851326Scripts/c88851326.lua2
Tachyon Chaos Hole59650656Scripts/c59650656.lua1
Fandora, the Flying Furtress64400161Scripts/c64400161.lua2
Dark General Freed70676581Scripts/c70676581.lua2
Spirit Burner50418970Scripts/c50418970.lua2
Gearbreed27979109Scripts/c27979109.lua1
Freed the Matchless General49681811Scripts/c49681811.lua2
Infernity Pawn82434071Scripts/c82434071.lua1
Meteor Flare56856951Scripts/c56856951.lua2
Sylvan Waterslide49838105Scripts/c49838105.lua1
Magical Blast91819979Scripts/c91819979.lua2
Malefic World27564031Scripts/c27564031.lua1
Iron Core of Koa'ki Meiru36623431Scripts/c36623431.lua2
Flying Saucer Muusik'i97697678Scripts/c97697678.lua2
Flame Tiger66499018Scripts/c66499018.lua1

Script Examples ​

Rank-Up-Magic Astral Force (45950291) ​

Source: Scripts/c45950291.lua

lua
end
function c45950291.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return aux.IsPlayerCanNormalDraw(tp) and Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 end
	local c=e:GetHandler()
	local e1=Effect.CreateEffect(c)

Black Luster Soldier - Legendary Swordsman (70551291) ​

Source: Scripts/c70551291.lua

lua
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return aux.IsPlayerCanNormalDraw(tp) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
	Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end

Legacy of the Duelist (88851326) ​

Source: Scripts/c88851326.lua

lua
end
function c88851326.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return aux.IsPlayerCanNormalDraw(tp) and Duel.IsExistingMatchingCard(c88851326.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
	Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end