GlobalFlag
Constants representing certain functionalities that are disabled by default in Duels, usually to avoid executing potentially expensive code in Duels where they are not needed. They are enabled automatically when relevant effects are registered or when certain functions are called.
Constant | HEX | DEC | Summary |
---|---|---|---|
GLOBALFLAG_DECK_REVERSE_CHECK | 0x1 | 1 | Allows face-up cards in the Main Deck. |
GLOBALFLAG_BRAINWASHING_CHECK | 0x2 | 2 | Enables effects that return the control of monsters to their owner. |
GLOBALFLAG_DELAYED_QUICKEFFECT | 0x8 | 8 | |
GLOBALFLAG_DETACH_EVENT | 0x10 | 16 | Allows effects to respond when an Xyz Monster's material(s) are detached. |
GLOBALFLAG_SPSUMMON_COUNT | 0x40 | 64 | Enabled effects that limit the number of times players can Special Summon. |
GLOBALFLAG_XMAT_COUNT_LIMIT | 0x80 | 128 | Allowed EFFECT_TYPE_XMATERIAL effects to have count limits. |
GLOBALFLAG_SELF_TOGRAVE | 0x100 | 256 | Enables effects that continuously send their handler to the GY. |
GLOBALFLAG_SPSUMMON_ONCE | 0x200 | 512 | Enables restricting a monster to being Special Summoned only once per turn. |