mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix build errors
This commit is contained in:
@@ -787,7 +787,7 @@ void PlayerbotAI::Reset(bool full)
|
||||
|
||||
void PlayerbotAI::RemoveFromGroup()
|
||||
{
|
||||
if (!bot || !bot->GetGroup() || bot->IsRealPlayer())
|
||||
if (!bot || !bot->GetGroup() || IsRealPlayer())
|
||||
return;
|
||||
|
||||
WorldPacket* packet = new WorldPacket(CMSG_GROUP_DISBAND);
|
||||
|
||||
@@ -415,7 +415,7 @@ public:
|
||||
void ResetStrategies(bool load = false);
|
||||
void ReInitCurrentEngine();
|
||||
void Reset(bool full = false);
|
||||
void PlayerbotAI::RemoveFromGroup()
|
||||
void RemoveFromGroup();
|
||||
static bool IsTank(Player* player, bool bySpec = false);
|
||||
static bool IsHeal(Player* player, bool bySpec = false);
|
||||
static bool IsDps(Player* player, bool bySpec = false);
|
||||
|
||||
@@ -2378,7 +2378,7 @@ void RandomPlayerbotMgr::IncreaseLevel(Player* bot)
|
||||
|
||||
void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
|
||||
{
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player);
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||
if (botAI)
|
||||
return;
|
||||
|
||||
@@ -2473,7 +2473,7 @@ void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
|
||||
|
||||
void RandomPlayerbotMgr::RandomizeMin(Player* bot)
|
||||
{
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player);
|
||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||
if (botAI)
|
||||
return;
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ bool UninviteAction::Execute(Event event)
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool LeaveGroupAction::Leave(Player* player)
|
||||
bool LeaveGroupAction::Leave(Player* player)
|
||||
{
|
||||
if (player &&
|
||||
!botAI &&
|
||||
|
||||
Reference in New Issue
Block a user