diff options
author | XTZGZoReX <none@none> | 2010-03-10 02:02:24 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2010-03-10 02:02:24 +0100 |
commit | 54df245bb245ef02e936f9915054dc652f83a90c (patch) | |
tree | ccb8d73d6147c4910619b4ad1b19c229b5369564 | |
parent | 41cf8c173e4c785cadc60aade407f0300bd19f7e (diff) |
* Update AiReaction enum.
--HG--
branch : trunk
-rw-r--r-- | src/game/SharedDefines.h | 8 | ||||
-rw-r--r-- | src/game/Unit.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h index d02794d9adb..83e7b9e08ea 100644 --- a/src/game/SharedDefines.h +++ b/src/game/SharedDefines.h @@ -2485,10 +2485,10 @@ enum PetDiet enum AiReaction { - AI_REACTION_UNK1 = 1, - AI_REACTION_AGGRO = 2, // trigger aggro sound to play, if defined in dbc - AI_REACTION_UNK3 = 3, // seen happen at polymorph, possible when AI not in control of self? - AI_REACTION_UNK4 = 4 + AI_REACTION_ALERT = 0, + AI_REACTION_FRIENDLY = 1, + AI_REACTION_HOSTILE = 2, // only currently existing reaction + AI_REACTION_AFRAID = 3 }; // Diminishing Returns Types diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3e75a6409f0..93afd45e088 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8990,7 +8990,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) victim->SetInCombatWith(this); AddThreat(victim, 0.0f); - this->ToCreature()->SendAIReaction(AI_REACTION_AGGRO); + this->ToCreature()->SendAIReaction(AI_REACTION_HOSTILE); this->ToCreature()->CallAssistance(); } @@ -13895,7 +13895,7 @@ void Unit::SendPetAIReaction(uint64 guid) WorldPacket data(SMSG_AI_REACTION, 8 + 4); data << uint64(guid); - data << uint32(AI_REACTION_AGGRO); + data << uint32(AI_REACTION_HOSTILE); owner->ToPlayer()->GetSession()->SendPacket(&data); } |