RSS

Среда, 08.05.2024, 06:53
Главная » WoW API » Игровые события »

UNIT_COMBAT

[ править ]
Fires when a unit takes or recovers from damage due to a combat effect.
[клоны]
Fires when a unit takes or recovers from damage due to a combat effect.


Signature:
Code
("unitID", "action", "descriptor", damage, damageType)

Arguments:
  • unitID - The unit that was affected. (string)
  • action - The action type that happened, i.e. WOUND, DODGE, HEAL (string)
  • descriptor - A descriptor that describes the action, i.e. CRITICAL, CRUSHING (string)
  • damage - The ammount of damage or healing received (number)
  • damageType - The type of damage dealt. Is 0(physical) for healing. (number)

Также смотрите: Игровые события
Ссылки: http://wowprogramming.com/docs/events/UNIT_COMBAT