mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 17:39:09 +00:00
Improve class spell and use trinket
This commit is contained in:
@@ -19,7 +19,7 @@ Unit* AttackerWithoutAuraTargetValue::Calculate()
|
||||
if (!unit || !unit->IsAlive())
|
||||
continue;
|
||||
|
||||
if (bot->GetDistance(unit) > botAI->GetRange(range))
|
||||
if (!bot->IsWithinCombatRange(unit, botAI->GetRange(range)))
|
||||
continue;
|
||||
|
||||
if (unit->GetHealth() < max_health)
|
||||
|
||||
Reference in New Issue
Block a user