From 3a4ebb7a9f09916ef6b8a7b69cf3e889297e7bbc Mon Sep 17 00:00:00 2001 From: Revision Date: Tue, 23 Jul 2024 16:33:14 +0200 Subject: [PATCH] Remove StartTime from PvP check --- src/strategy/values/AttackersValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/AttackersValue.cpp b/src/strategy/values/AttackersValue.cpp index d99ebc38..1df21258 100644 --- a/src/strategy/values/AttackersValue.cpp +++ b/src/strategy/values/AttackersValue.cpp @@ -180,7 +180,7 @@ bool AttackersValue::IsPossibleTarget(Unit* attacker, Player* bot, float range) !attacker->HasUnitFlag(UNIT_FLAG_NOT_SELECTABLE) && bot->CanSeeOrDetect(attacker) && !(sPlayerbotAIConfig->IsPvpProhibited(attacker->GetZoneId(), attacker->GetAreaId()) && (attacker->GetGUID().IsPlayer() || attacker->GetGUID().IsPet())) && - !(attacker->IsPlayer() && !attacker->IsPvP() && !attacker->IsFFAPvP() && (!bot->duel || bot->duel->Opponent != attacker || bot->duel->StartTime)) && + !(attacker->IsPlayer() && !attacker->IsPvP() && !attacker->IsFFAPvP() && (!bot->duel || bot->duel->Opponent != attacker)) && (!c || (!c->IsInEvadeMode() && ((!isMemberBotGroup && botAI->HasStrategy("attack tagged", BOT_STATE_NON_COMBAT)) || leaderHasThreat || (!c->hasLootRecipient() && (!c->GetVictim() || (c->GetVictim() && ((!c->GetVictim()->IsPlayer() || bot->IsInSameGroupWith(c->GetVictim()->ToPlayer())) || (botAI->GetMaster() && c->GetVictim() == botAI->GetMaster()))))) || c->isTappedBy(bot))));