Skip to content

Commit

Permalink
Remove guild task code from core
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete authored and celguar committed Jan 23, 2024
1 parent de8bd84 commit 0696c81
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/game/Chat/Chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "AhBot.h"
#include "playerbot.h"
#include "PlayerbotAIConfig.h"
#include "GuildTaskMgr.h"
#endif

#include <cstdarg>
Expand Down Expand Up @@ -929,7 +928,6 @@ ChatCommand* ChatHandler::getCommandTable()
#endif
{ "rndbot", SEC_GAMEMASTER, true, &ChatHandler::HandleRandomPlayerbotCommand, "", NULL },
{ "bot", SEC_PLAYER, false, &ChatHandler::HandlePlayerbotCommand, "", NULL },
{ "gtask", SEC_GAMEMASTER, true, &ChatHandler::HandleGuildTaskCommand, "", NULL },
{ "pmon", SEC_GAMEMASTER, true, &ChatHandler::HandlePerfMonCommand, "" },
#endif
{ "cast", SEC_ADMINISTRATOR, false, nullptr, "", castCommandTable },
Expand Down
1 change: 0 additions & 1 deletion src/game/Chat/Chat.h
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ class ChatHandler
bool HandlePlayerbotCommand(char* args);
bool HandleRandomPlayerbotCommand(char* args);
bool HandleAhBotCommand(char* args);
bool HandleGuildTaskCommand(char* args);
bool HandlePerfMonCommand(char* args);
#endif

Expand Down
11 changes: 0 additions & 11 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
#include "Metric/Metric.h"
#endif

#ifdef ENABLE_PLAYERBOTS
#include "playerbot.h"
#include "GuildTaskMgr.h"
#endif

#include <math.h>
#include <limits>
#include <array>
Expand Down Expand Up @@ -1419,12 +1414,6 @@ void Unit::JustKilledCreature(Unit* killer, Creature* victim, Player* responsibl
if (BattleGround* bg = responsiblePlayer->GetBattleGround())
bg->HandleKillUnit(victim, responsiblePlayer);

#ifdef ENABLE_PLAYERBOTS
// Guild Task check
if (responsiblePlayer && sPlayerbotAIConfig.guildTaskEnabled)
sGuildTaskMgr.CheckKillTask(responsiblePlayer, victim);
#endif

// Notify the outdoor pvp script
if (OutdoorPvP* outdoorPvP = sOutdoorPvPMgr.GetScript(responsiblePlayer ? responsiblePlayer->GetCachedZoneId() : victim->GetZoneId()))
outdoorPvP->HandleCreatureDeath(victim);
Expand Down

0 comments on commit 0696c81

Please sign in to comment.