mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
feat(Core/Modules): add separated lib for modules (#9281)
This commit is contained in:
@@ -44,9 +44,6 @@
|
||||
#include "World.h"
|
||||
#include "WorldPacket.h"
|
||||
|
||||
#ifdef ELUNA
|
||||
#include "LuaEngine.h"
|
||||
#endif
|
||||
namespace Acore
|
||||
{
|
||||
class BattlegroundChatBuilder
|
||||
@@ -217,9 +214,7 @@ Battleground::~Battleground()
|
||||
for (uint32 i = 0; i < size; ++i)
|
||||
DelObject(i);
|
||||
|
||||
#ifdef ELUNA
|
||||
sEluna->OnBGDestroy(this, GetBgTypeID(), GetInstanceID());
|
||||
#endif
|
||||
sScriptMgr->OnBattlegroundDestroy(this);
|
||||
|
||||
sBattlegroundMgr->RemoveBattleground(GetBgTypeID(), GetInstanceID());
|
||||
// unload map
|
||||
@@ -513,10 +508,6 @@ inline void Battleground::_ProcessJoin(uint32 diff)
|
||||
|
||||
StartingEventOpenDoors();
|
||||
|
||||
#ifdef ELUNA
|
||||
sEluna->OnBGStart(this, GetBgTypeID(), GetInstanceID());
|
||||
#endif
|
||||
|
||||
SendWarningToAll(StartMessageIds[BG_STARTING_EVENT_FOURTH]);
|
||||
SetStatus(STATUS_IN_PROGRESS);
|
||||
SetStartDelayTime(StartDelayTimes[BG_STARTING_EVENT_FOURTH]);
|
||||
@@ -1063,9 +1054,7 @@ void Battleground::EndBattleground(TeamId winnerTeamId)
|
||||
if (winmsg_id)
|
||||
SendMessageToAll(winmsg_id, CHAT_MSG_BG_SYSTEM_NEUTRAL);
|
||||
|
||||
#ifdef ELUNA
|
||||
sEluna->OnBGEnd(this, GetBgTypeID(), GetInstanceID(), winnerTeamId);
|
||||
#endif
|
||||
sScriptMgr->OnBattlegroundEnd(this, winnerTeamId);
|
||||
}
|
||||
|
||||
uint32 Battleground::GetBonusHonorFromKill(uint32 kills) const
|
||||
|
||||
Reference in New Issue
Block a user