Duel.IsPlayerCanSpecialSummonMonster
Source Code | Usage Examples | Duel Functions
Checks if the player can special summon a monster as "sumtype", with the specified stats, in "pos" on "target_player"'s field. The stats are read as "code"'s default stats, if the stat parameters are not passed are passed as nil, they are not overwritten from the base stats, otherwise the new passed value will be used as stat for the card. "setcode" can be both an int with multiple setcodes encoded in a single value (by bit shifting them, but with a max of 4 setcodes) or as a table, with each entry representing a separate setcode.
Signature
Duel.IsPlayerCanSpecialSummonMonster(int player, int code, [int|table setcode, int type, int atk, int def, int level, int race, int attribute, int pos = POS_FACEUP, int target_player = player, int sumtype = 0]) → bool
Duel.IsPlayerCanSpecialSummonMonster(player,code,setcode,type,atk,def,level,race,attribute,pos,target_player,sumtype)Parameters
int
player(To be added)
int
code(To be added)
int|table
setcodeOptional.
(To be added)
int
typeOptional.
(To be added)
int
atkOptional.
(To be added)
int
defOptional.
(To be added)
int
levelOptional.
(To be added)
int
raceOptional.
(To be added)
int
attributeOptional.
(To be added)
int
posOptional. Defaults to
POS_FACEUP.(To be added)
int
target_playerOptional. Defaults to
player.(To be added)
int
sumtypeOptional. Defaults to
0.(To be added)