fix IsInPvpProhibitedZone

This commit is contained in:
Yunfan Li
2023-07-31 12:47:24 +08:00
parent aaae6b6476
commit ead4a2fe56
3 changed files with 3 additions and 3 deletions

View File

@@ -459,7 +459,7 @@ bool RpgTradeUsefulAction::Execute(Event event)
bool RpgDuelAction::isUseful()
{
// do not offer duel in non pvp areas
if (sPlayerbotAIConfig->IsInPvpProhibitedZone(bot->GetAreaId()))
if (sPlayerbotAIConfig->IsInPvpProhibitedZone(bot->GetZoneId()))
return false;
// Players can only fight a duel with each other outside (=not inside dungeons and not in capital cities)