mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
Minor improvments on logs, stats weights and aoe distance calculation (#995)
* StatsCollector for paladin spell * Remove error log on MoveFromGroup * Log and timer for CreateRandomBots * Improve aoe trigger distance calculation * Reduce spirit weights for heal priest and paladin
This commit is contained in:
@@ -228,8 +228,7 @@ bool AoeTrigger::IsActive()
|
||||
Unit* unit = botAI->GetUnit(guid);
|
||||
if (!unit || !unit->IsAlive())
|
||||
continue;
|
||||
|
||||
if (unit->GetExactDist2d(current_target) <= range)
|
||||
if (unit->GetDistance(current_target->GetPosition()) <= range)
|
||||
{
|
||||
attackers_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user