mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9559] Update AiReaction enum.
This commit is contained in:
parent
66c5e3aebb
commit
820550223a
3 changed files with 7 additions and 7 deletions
|
|
@ -2407,10 +2407,10 @@ enum PetDiet
|
||||||
|
|
||||||
enum AiReaction
|
enum AiReaction
|
||||||
{
|
{
|
||||||
AI_REACTION_UNK1 = 1,
|
AI_REACTION_ALERT = 0,
|
||||||
AI_REACTION_AGGRO = 2, // trigger aggro sound to play, if defined in dbc
|
AI_REACTION_FRIENDLY = 1,
|
||||||
AI_REACTION_UNK3 = 3, // seen happen at polymorph, possible when AI not in control of self?
|
AI_REACTION_HOSTILE = 2, // only currently existing reaction
|
||||||
AI_REACTION_UNK4 = 4
|
AI_REACTION_AFRAID = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
// Diminishing Returns Types
|
// Diminishing Returns Types
|
||||||
|
|
|
||||||
|
|
@ -8373,7 +8373,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack)
|
||||||
|
|
||||||
if (GetTypeId() == TYPEID_UNIT)
|
if (GetTypeId() == TYPEID_UNIT)
|
||||||
{
|
{
|
||||||
((Creature*)this)->SendAIReaction(AI_REACTION_AGGRO);
|
((Creature*)this)->SendAIReaction(AI_REACTION_HOSTILE);
|
||||||
((Creature*)this)->CallAssistance();
|
((Creature*)this)->CallAssistance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12561,7 +12561,7 @@ void Unit::SendPetAIReaction(uint64 guid)
|
||||||
|
|
||||||
WorldPacket data(SMSG_AI_REACTION, 8 + 4);
|
WorldPacket data(SMSG_AI_REACTION, 8 + 4);
|
||||||
data << uint64(guid);
|
data << uint64(guid);
|
||||||
data << uint32(AI_REACTION_AGGRO);
|
data << uint32(AI_REACTION_HOSTILE);
|
||||||
((Player*)owner)->GetSession()->SendPacket(&data);
|
((Player*)owner)->GetSession()->SendPacket(&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9558"
|
#define REVISION_NR "9559"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue