mirror of
https://git.vectorsigma.ru/public/mod-playerbots.git
synced 2026-08-06 04:18:53 +00:00
smarter dps target and tank target
This commit is contained in:
@@ -21,7 +21,8 @@ bool HasAggroValue::Calculate()
|
||||
if (!victim) {
|
||||
return true;
|
||||
}
|
||||
if (victim && (victim->GetGUID() == bot->GetGUID() || (victim->ToPlayer() && botAI->IsMainTank(victim->ToPlayer())))) {
|
||||
bool isMT = botAI->IsMainTank(bot);
|
||||
if (victim && (victim->GetGUID() == bot->GetGUID() || (!isMT && victim->ToPlayer() && botAI->IsTank(victim->ToPlayer())))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user