фиксы для режима предатель: приглашение в гильдию и группу

This commit is contained in:
2026-04-16 17:51:58 +04:00
parent 7a32675298
commit 4d8a2a20e1
6 changed files with 56 additions and 14 deletions
@@ -4772,7 +4772,10 @@ uint32 PlayerbotAI::AutoScaleActivity(uint32 mod)
return static_cast<uint32>(mod * (1 - lagProgress));
}
bool PlayerbotAI::IsOpposing(Player* player) { return IsOpposing(player->getRace(), bot->getRace()); }
bool PlayerbotAI::IsOpposing(Player* player)
{
return player && bot && player->GetTeamId() != bot->GetTeamId();
}
bool PlayerbotAI::IsOpposing(uint8 race1, uint8 race2)
{