[9559] Update AiReaction enum.

This commit is contained in:
XTZGZoReX 2010-03-10 01:57:21 +01:00
parent 66c5e3aebb
commit 820550223a
3 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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);
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9558"
#define REVISION_NR "9559"
#endif // __REVISION_NR_H__