mirror of
https://github.com/araxiaonline/mod-mythic-plus.git
synced 2026-06-13 03:02:24 -04:00
Updates to work with latest acore source
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "MpDataStore.h"
|
||||
#include "Group.h"
|
||||
#include "MpLogger.h"
|
||||
#include "Chat.h"
|
||||
|
||||
// Adds an entry for the group difficult to memory and updats database
|
||||
void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
|
||||
@@ -55,7 +56,7 @@ void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
|
||||
MpLogger::error("AddGroupData called with null player in instance");
|
||||
}
|
||||
|
||||
player->GetSession()->SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
|
||||
ChatHandler(player->GetSession()).SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +78,7 @@ void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
|
||||
MpLogger::error("AddGroupData called with null player in instance");
|
||||
}
|
||||
|
||||
player->GetSession()->SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
|
||||
ChatHandler(player->GetSession()).SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
for(auto it = players.begin(); it != players.end(); ++it)
|
||||
{
|
||||
Player* player = it->GetSource();
|
||||
player->GetSession()->SendNotification("Your group has died too many time to continue. %u", totalDeaths);
|
||||
ChatHandler(player->GetSession()).PSendSysMessage("Your group has died too many time to continue. %u", totalDeaths);
|
||||
}
|
||||
map->RemoveAllPlayers();
|
||||
map->ToInstanceMap()->Reset(0);
|
||||
|
||||
Reference in New Issue
Block a user