mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix build errors
This commit is contained in:
parent
1faf20f567
commit
780f6d60e0
@ -787,7 +787,7 @@ void PlayerbotAI::Reset(bool full)
|
|||||||
|
|
||||||
void PlayerbotAI::RemoveFromGroup()
|
void PlayerbotAI::RemoveFromGroup()
|
||||||
{
|
{
|
||||||
if (!bot || !bot->GetGroup() || bot->IsRealPlayer())
|
if (!bot || !bot->GetGroup() || IsRealPlayer())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
WorldPacket* packet = new WorldPacket(CMSG_GROUP_DISBAND);
|
WorldPacket* packet = new WorldPacket(CMSG_GROUP_DISBAND);
|
||||||
|
|||||||
@ -415,7 +415,7 @@ public:
|
|||||||
void ResetStrategies(bool load = false);
|
void ResetStrategies(bool load = false);
|
||||||
void ReInitCurrentEngine();
|
void ReInitCurrentEngine();
|
||||||
void Reset(bool full = false);
|
void Reset(bool full = false);
|
||||||
void PlayerbotAI::RemoveFromGroup()
|
void RemoveFromGroup();
|
||||||
static bool IsTank(Player* player, bool bySpec = false);
|
static bool IsTank(Player* player, bool bySpec = false);
|
||||||
static bool IsHeal(Player* player, bool bySpec = false);
|
static bool IsHeal(Player* player, bool bySpec = false);
|
||||||
static bool IsDps(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)
|
void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
|
||||||
{
|
{
|
||||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player);
|
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||||
if (botAI)
|
if (botAI)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -2473,7 +2473,7 @@ void RandomPlayerbotMgr::RandomizeFirst(Player* bot)
|
|||||||
|
|
||||||
void RandomPlayerbotMgr::RandomizeMin(Player* bot)
|
void RandomPlayerbotMgr::RandomizeMin(Player* bot)
|
||||||
{
|
{
|
||||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player);
|
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||||
if (botAI)
|
if (botAI)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,7 @@ bool UninviteAction::Execute(Event event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool LeaveGroupAction::Leave(Player* player)
|
bool LeaveGroupAction::Leave(Player* player)
|
||||||
{
|
{
|
||||||
if (player &&
|
if (player &&
|
||||||
!botAI &&
|
!botAI &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user