Pvp Prohibited Areas

This commit is contained in:
Yunfan Li
2023-10-28 19:22:58 +08:00
parent 917e55c92a
commit a28d096bef
6 changed files with 22 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ bool AttackEnemyPlayerAction::isUseful()
if (bot->HasAura(23333) || bot->HasAura(23335) || bot->HasAura(34976))
return false;
return !sPlayerbotAIConfig->IsInPvpProhibitedZone(bot->GetZoneId());
return !sPlayerbotAIConfig->IsPvpProhibited(bot->GetZoneId(), bot->GetAreaId());
}
bool AttackEnemyFlagCarrierAction::isUseful()