Skip to content

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

lua
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 setcode ​

    Optional.

    (To be added)

  • int type ​

    Optional.

    (To be added)

  • int atk ​

    Optional.

    (To be added)

  • int def ​

    Optional.

    (To be added)

  • int level ​

    Optional.

    (To be added)

  • int race ​

    Optional.

    (To be added)

  • int attribute ​

    Optional.

    (To be added)

  • int pos ​

    Optional. Defaults to POS_FACEUP.

    (To be added)

  • int target_player ​

    Optional. Defaults to player.

    (To be added)

  • int sumtype ​

    Optional. Defaults to 0.

    (To be added)

Returns ​


under-construction