mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8622] Add own function to send AI_Reaction packet.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4cc389ff71
commit
732bcfbbb6
5 changed files with 19 additions and 9 deletions
|
|
@ -7690,13 +7690,9 @@ bool Unit::Attack(Unit *victim, bool meleeAttack)
|
|||
m_attacking = victim;
|
||||
m_attacking->_addAttacker(this);
|
||||
|
||||
if(GetTypeId()==TYPEID_UNIT)
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
WorldPacket data(SMSG_AI_REACTION, 12);
|
||||
data << uint64(GetGUID());
|
||||
data << uint32(AI_REACTION_AGGRO); // Aggro sound
|
||||
((WorldObject*)this)->SendMessageToSet(&data, true);
|
||||
|
||||
((Creature*)this)->SendAIReaction(AI_REACTION_AGGRO);
|
||||
((Creature*)this)->CallAssistance();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue