We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36bbaa5 commit 99c26c6Copy full SHA for 99c26c6
src/game/PlayerBots/PartyBotAI.cpp
@@ -960,6 +960,27 @@ void PartyBotAI::UpdateInCombatAI()
960
return;
961
}
962
963
+ Unit* pVictim = me->GetVictim();
964
+
965
+ // Swap to marked target or party leader's target
966
+ if (GetRole() != ROLE_HEALER)
967
+ {
968
+ if (Player* pLeader = GetPartyLeader())
969
970
+ Unit* newVictim = SelectAttackTarget(pLeader);
971
972
+ if (newVictim && (newVictim != pVictim))
973
974
+ if (pVictim)
975
+ me->AttackStop();
976
+ else
977
+ AttackStart(newVictim);
978
979
+ return;
980
+ }
981
982
983
984
switch (me->GetClass())
985
{
986
case CLASS_PALADIN:
0 commit comments