Skip to content

Card.IsHasEffect

Source Code | Usage Examples | Card Functions

Returns all the effects of a given code being applied to a card, such as by Equip and Field Effects. This also includes the card's own Single effects. For effects registered or being granted to a card, use Card.GetOwnEffects.

Signature

Card.IsHasEffect(Card c, int code, [int player = PLAYER_NONE]) → Effect ...

lua
c:IsHasEffect(code,player)

Parameters

  • Card c

    Card

  • int code

    The EffectCode of the effects to get.

  • int player

    Optional. Defaults to PLAYER_NONE.

    If provided, the function will only return effects with a remaining count limit for that player.

Returns

  • Effect ...

    The effects being applied to c.


See Also