aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 17:43:47 +0100
committern0n4m3 <none@none>2009-12-19 17:43:47 +0100
commit2925dfcfc45b836cd6608192c17c8227f6f8fffa (patch)
tree6a22d5f6d0f3af7f2ca06092bdd558da294c21de /src/game/Unit.cpp
parent86003a4039ac6e0f742f644f5100fc7a1c6f3da4 (diff)
Add own function to send AI_Reaction packet. by NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 1 insertions, 5 deletions
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();
}