Scripts/Items: Imp in a Ball

This commit is contained in:
Trisjdc authored and Unholychick committed 2014-06-09 23:10:47 +02:00
1 parent 46c7524084
commit 78f1cbfba5
3 files changed
+161

No files matched your search

+13
View File
@@ -24,6 +24,7 @@
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "CreatureTextMgr.h"
#include "Group.h"
class CreatureTextBuilder
{
@@ -346,6 +347,18 @@ void CreatureTextMgr::SendNonChatPacket(WorldObject* source, WorldPacket* data,
}
break;
}
case CHAT_MSG_MONSTER_PARTY:
if (!whisperTarget)
return;
if (Player const* player = whisperTarget->ToPlayer())
{
if (Group* group = const_cast<Group*>(player->GetGroup()))
for (GroupReference* itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
if (Player* member = itr->GetSource())
member->GetSession()->SendPacket(data);
}
return;
default:
break;
}