mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 01:19:08 +00:00
Improve class spell and use trinket
This commit is contained in:
@@ -103,7 +103,8 @@ bool PartyMemberValue::Check(Unit* player)
|
||||
{
|
||||
// return player && player != bot && player->GetMapId() == bot->GetMapId() && bot->IsWithinDistInMap(player,
|
||||
// sPlayerbotAIConfig->sightDistance, false);
|
||||
return player && player->GetMapId() == bot->GetMapId() &&
|
||||
bool isGM = player->ToPlayer() && player->ToPlayer()->IsGameMaster();
|
||||
return player && player->GetMapId() == bot->GetMapId() && !isGM &&
|
||||
bot->GetDistance(player) < sPlayerbotAIConfig->spellDistance * 2 &&
|
||||
bot->IsWithinLOS(player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user