Core/Chat: Added option to allow 5-man parties to use raid warnings

This commit is contained in:
Alan Deutscher authored and Aokromes committed 2017-01-09 07:59:55 +01:00
1 parent 9ed19ea73f
commit c9ce2acb95
4 files changed
+16 -1

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
case CHAT_MSG_RAID_WARNING:
{
Group* group = GetPlayer()->GetGroup();
if (!group || !group->isRaidGroup() || !(group->IsLeader(GetPlayer()->GetGUID()) || group->IsAssistant(GetPlayer()->GetGUID())) || group->isBGGroup())
if (!group || (group->isRaidGroup() && !(group->IsLeader(GetPlayer()->GetGUID()) || group->IsAssistant(GetPlayer()->GetGUID()))) || group->isBGGroup() || !sWorld->getBoolConfig(CONFIG_CHAT_PARTY_RAID_WARNINGS))
return;
sScriptMgr->OnPlayerChat(GetPlayer(), type, lang, msg, group);