Updates to bring in event handlers for communication and register on server load

This commit is contained in:
2025-01-18 11:28:07 -05:00
parent 2aeafa689a
commit d4fa53d435
3 changed files with 52 additions and 75 deletions

View File

@@ -6,10 +6,7 @@
#include "Group.h"
#include "ScriptMgr.h"
#include "TaskScheduler.h"
#include "AdvancementMgr.cpp"
#include "Chat.h"
#include "Channel.h"
#include "ChannelMgr.h"
#include "AdvancementMgr.h"
class MythicPlus_PlayerScript : public PlayerScript
{
@@ -23,7 +20,7 @@ public:
* - Determine whether or not the Group failed the instance due to death count setting.
*/
void OnPlayerKilledByCreature(Creature* killer, Player* player)
void OnPlayerKilledByCreature(Creature* killer, Player* player) override
{
Map* map = player->GetMap();
if(!sMythicPlus->IsMapEligible(map)) {