diff --git a/src/strategy/actions/AttackAction.cpp b/src/strategy/actions/AttackAction.cpp index 1ba9f4b5..61efe14f 100644 --- a/src/strategy/actions/AttackAction.cpp +++ b/src/strategy/actions/AttackAction.cpp @@ -95,6 +95,16 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/) return false; } + if (target->IsPlayer() && !target->IsPvP() && !target->IsFFAPvP() && (!bot->duel || bot->duel->Opponent != target || bot->duel->StartTime)) + { + if (verbose) + { + botAI->TellError(Acore::StringFormat("%s is not flagged for pvp", target->GetName())); + } + + return false; + } + if (bot->IsMounted() && bot->IsWithinLOSInMap(target)) { WorldPacket emptyPacket;