diff options
| author | n0n4m3 <none@none> | 2009-12-19 17:43:47 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-19 17:43:47 +0100 |
| commit | 2925dfcfc45b836cd6608192c17c8227f6f8fffa (patch) | |
| tree | 6a22d5f6d0f3af7f2ca06092bdd558da294c21de /src/game/Creature.cpp | |
| parent | 86003a4039ac6e0f742f644f5100fc7a1c6f3da4 (diff) | |
Add own function to send AI_Reaction packet. by NoFantasy
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 9dcfce82601..c31906d110f 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -2094,6 +2094,18 @@ Unit* Creature::SelectNearestTarget(float dist) const return target; } +void Creature::SendAIReaction(AiReaction reactionType) +{ + WorldPacket data(SMSG_AI_REACTION, 12); + + data << uint64(GetGUID()); + data << uint32(reactionType); + + ((WorldObject*)this)->SendMessageToSet(&data, true); + + sLog.outDebug("WORLD: Sent SMSG_AI_REACTION, type %u.", reactionType); +} + void Creature::CallAssistance() { if( !m_AlreadyCallAssistance && getVictim() && !isPet() && !isCharmed()) |
