Skip to content

Duel.IsEnvironment

Source Code | Duel Functions

Depending on the location and player passed checks if there's: - a Field Spell with its effects applied in the field zone OR - a card with its effects applied that correspond to the code. If there are no field spells in play and LOCATION_FZONE or LOCATION_SZONE are passed, effects that treats as if a field spell is in play (e.g. "Maiden of the Aqua") are also checked.

Signature

Duel.IsEnvironment(int code, [int player = PLAYER_ALL, int location = LOCATION_ONFIELD|LOCATION_FZONE]) → bool

lua
Duel.IsEnvironment(code,player,location)

Parameters

  • int code

    (To be added)

  • int player

    Optional. Defaults to PLAYER_ALL.

    (To be added)

  • int location

    Optional. Defaults to LOCATION_ONFIELD|LOCATION_FZONE.

    (To be added)

Returns


under-construction