RushDuel.GetSZoneCount
Alias: RD.GetSZoneCount. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.GetSZoneCount(int player, int max) -> intDescription
Returns the available Spell & Trap Zone count capped by max.
Parameters
playerint: Player, 0 or 1.maxint: Upper bound; required by math.min.
Returns
int: Capped available zone count.
Source
Rush/Utilities/RDFunction.lua:133
lua
function RushDuel.GetSZoneCount(player, max)
local ct = Duel.GetLocationCount(player, LOCATION_SZONE)
return math.min(ct, max)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
No indexed local card script currently calls this function.
This can mean the function is unused in the current script set, is only called through an alias, or is available for future/manual scripts.