Do not give leader back

This commit is contained in:
郑佩茹
2022-09-22 17:25:47 -06:00
parent 88d81c7a31
commit 8523079c35
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ Unit* PartyMemberToHeal::Calculate()
bool PartyMemberToHeal::Check(Unit* player)
{
return player && player != bot && player->GetMapId() == bot->GetMapId() &&
return player && player != bot && player->GetMapId() == bot->GetMapId() && player->IsInWorld() &&
sServerFacade->GetDistance2d(bot, player) < (player->IsPlayer() && botAI->IsTank((Player*)player) ? 50.0f : 40.0f);
}