-
Notifications
You must be signed in to change notification settings - Fork 1
Spell structure
Andrej Dobes edited this page May 19, 2021
·
20 revisions
Spell effects:
SPELL_EFFECT_NAME | SPELL_EFFECT_ID | EFFECT_VALUE_1 | EFFECT_VALUE_2 | EFFECT_VALUE_3 | EFFECT_VALUE_4
SPELL_EFFECT_DIRECT_DAMAGE | 0 | DAMAGE | NOT_USED | NOT_USED | NOT_USED
SPELL_EFFECT_APPLY_AURA | 1 | AURA_EFFECT_ID | AURA_DURATION | AURA_VALUE_1 | AURA_VALUE_2
SPELL_EFFECT_HEAL | 2 | HEAL | NOT_USED | NOT_USED | NOT_USED
SPELL_EFFECT_DRAIN | 3 | DRAIN_HEALTH | RESTORE_HEALTH | DRAIN_MANA | RESTORE_MANA
SPELL_EFFECT_REMOVE_AURA_TYPE | 4 | AURA_EFFECT_ID | REMOVE_COUNT | NOT_USED | NOT_USED
SPELL_EFFECT_SWAP | 5 | NOT_USED | NOT_USED | NOT_USED | NOT_USED
Spell attributes:
SPELL_ATTRIBUTE_NAME | SPELL_ATTRIBUTE_VALUE
SPELL_ATTRIBUTE_TARGET_MELEE | 1
SPELL_ATTRIBUTE_TARGET_EXCLUDE_SELF | 2
SPELL_ATTRIBUTE_APPLY_DEFENSE | 4
SPELL_ATTRIBUTE_AURA_EXCLUSIVE | 8
SPELL_ATTRIBUTE_CONTINUE_MOVE | 16
Spell targets:
TARGET_NAME | TARGET_ID
TARGET_UNIT_TARGET_ENEMY | 0
TARGET_UNIT_TARGET_FRIEND | 1
TARGET_UNIT_CLEAVE_ENEMY | 2
TARGET_UNIT_SELF | 3
Spell aura effects:
SPELL_AURA_EFFECT_NAME | AURA_EFFECT_ID | AURA_VALUE_1 | AURA_VALUE_2 | Description
SPELL_AURA_EFFECT_DAMAGE | 0 | TICK_INTERVAL | DAMAGE
SPELL_AURA_EFFECT_MODIFY_STAT | 1 | CARD_STAT_ID | VALUE
SPELL_AURA_EFFECT_HEAL | 2 | TICK_INTERVAL | HEAL
SPELL_AURA_EFFECT_MORPH | 3 | MANA_APPLY | MANA_REMOVE | Percentage of mana to be set upon apply/remove based on morphed target (apply) and self (remove)
Card stats:
CARD_STAT_NAME | CARD_STAT_ID
CARD_STAT_DEFENSE | 1
CARD_STAT_DAMAGE | 2
CARD_STAT_DAMAGE_TAKEN | 4
CARD_STAT_SPELL_DAMAGE | 8
CARD_STAT_SPELL_DAMAGE_TAKEN | 16
CARD_STAT_SPELL_HEAL | 32
CARD_STAT_SPELL_HEAL_TAKEN | 64