mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
fix IsInPvpProhibitedZone
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user