Add support for CreatureAI::DamageDealt used in a Zul'Aman script. Thanks joshwhedon.
--HG-- branch : trunk
This commit is contained in:
@@ -95,6 +95,9 @@ class CreatureAI : public UnitAI
|
||||
// Called for reaction at enter to combat if not in combat yet (enemy can be NULL)
|
||||
virtual void EnterCombat(Unit* /*enemy*/) {}
|
||||
|
||||
// Called at any Damage to any victim (before damage apply)
|
||||
virtual void DamageDealt(Unit * /*done_to*/, uint32 & /*damage*/) { }
|
||||
|
||||
// Called at any Damage from any attacker (before damage apply)
|
||||
// Note: it for recalculation damage or special reaction at damage
|
||||
// for attack reaction use AttackedBy called for not DOT damage in Unit::DealDamage also
|
||||
|
||||
Reference in New Issue
Block a user