Function resolveCardAudio

  • Returns the corresponding audio path when a card is played.

    1. If the played card contains the effect keyword and the current turn is set to clear all effects, play the cleanse audio.
    2. If the current player has an active freeze effect, play the defrost audio.
    3. If the played card contains the damage keyword and the current attack is set to miss, play the miss audio.
    4. If the played card has single self-healing effect and the current player has poison effect, play the potion audio.
    5. In all other cases, play the default audio associated with the card.

    Parameters

    Returns string

Generated using TypeDoc