bot to player

This commit is contained in:
SaW
2025-10-30 22:01:34 +01:00
committed by GitHub
parent 3577acebd4
commit f9fce01282

View File

@@ -2226,7 +2226,7 @@ uint32 PlayerbotAI::GetGroupTankNum(Player* player)
bool PlayerbotAI::IsHealAssistantOfIndex(Player* player, int index) bool PlayerbotAI::IsHealAssistantOfIndex(Player* player, int index)
{ {
Group* group = bot->GetGroup(); Group* group = player->GetGroup();
if (!group) if (!group)
{ {
return false; return false;
@@ -2265,7 +2265,7 @@ bool PlayerbotAI::IsRangedDps(Player* player, bool bySpec) { return IsRanged(pla
bool PlayerbotAI::IsRangedDpsAssistantOfIndex(Player* player, int index) bool PlayerbotAI::IsRangedDpsAssistantOfIndex(Player* player, int index)
{ {
Group* group = bot->GetGroup(); Group* group = player->GetGroup();
if (!group) if (!group)
{ {
return false; return false;
@@ -2304,7 +2304,7 @@ bool PlayerbotAI::IsAssistTank(Player* player) { return IsTank(player) && !IsMai
bool PlayerbotAI::IsAssistTankOfIndex(Player* player, int index) bool PlayerbotAI::IsAssistTankOfIndex(Player* player, int index)
{ {
Group* group = bot->GetGroup(); Group* group = player->GetGroup();
if (!group) if (!group)
{ {
return false; return false;