diff options
| author | Subv <s.v.h21@hotmail.com> | 2012-12-09 07:50:33 -0800 |
|---|---|---|
| committer | Subv <s.v.h21@hotmail.com> | 2012-12-09 07:50:33 -0800 |
| commit | 01f118bf77956470e2469400ba7937c0711cd699 (patch) | |
| tree | a2aae1becdeb84c4df0fc2fde3b25e654645d9bb /src/server/game/AI/CreatureAI.h | |
| parent | cb501a2aa4cce1cd4868a7eda528c8ba42875db3 (diff) | |
| parent | 777b287dff8bce806849a26d59fe40f864c385ed (diff) | |
Merge pull request #8416 from MrSmite/PetAI_2.0
Core/PetAI: Several changes.
Closes #7455
Closes #8398
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
| -rw-r--r-- | src/server/game/AI/CreatureAI.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h index d3ad27935ca..e6439ec9920 100644 --- a/src/server/game/AI/CreatureAI.h +++ b/src/server/game/AI/CreatureAI.h @@ -117,7 +117,7 @@ class CreatureAI : public UnitAI virtual void SpellHitTarget(Unit* /*target*/, SpellInfo const* /*spell*/) {} // Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc) - //virtual void AttackedBy(Unit* attacker); + virtual void AttackedBy(Unit* attacker) {} virtual bool IsEscorted() { return false; } // Called when creature is spawned or respawned (for reseting variables) @@ -137,7 +137,7 @@ class CreatureAI : public UnitAI virtual void ReceiveEmote(Player* /*player*/, uint32 /*emoteId*/) {} // Called when owner takes damage - virtual void OwnerDamagedBy(Unit* /*attacker*/) {} + virtual void OwnerAttackedBy(Unit* /*attacker*/) {} // Called when owner attacks something virtual void OwnerAttacked(Unit* /*target*/) {} |
