diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h index b2b62f0fe..64800a546 100644 --- a/src/game/SharedDefines.h +++ b/src/game/SharedDefines.h @@ -2407,10 +2407,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 459745786..1af4805d5 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8373,7 +8373,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) if (GetTypeId() == TYPEID_UNIT) { - ((Creature*)this)->SendAIReaction(AI_REACTION_AGGRO); + ((Creature*)this)->SendAIReaction(AI_REACTION_HOSTILE); ((Creature*)this)->CallAssistance(); } @@ -12561,7 +12561,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); ((Player*)owner)->GetSession()->SendPacket(&data); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2911c97cc..9be753b61 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9558" + #define REVISION_NR "9559" #endif // __REVISION_NR_H__