From 2925dfcfc45b836cd6608192c17c8227f6f8fffa Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Sat, 19 Dec 2009 17:43:47 +0100 Subject: Add own function to send AI_Reaction packet. by NoFantasy --HG-- branch : trunk --- src/game/Unit.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4f3e90bf507..117c64d61de 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8616,11 +8616,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) victim->SetInCombatWith(this); AddThreat(victim, 0.0f); - 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(); } -- cgit v1.2.3