Update NexusActions.cpp

Remove reference to boss distance
This commit is contained in:
Bobblybook
2024-10-20 16:08:20 +11:00
parent 159cd1ad71
commit 66b199e795

View File

@@ -52,15 +52,11 @@ bool FirebombSpreadAction::Execute(Event event)
for (auto& member : members)
{
Unit* unit = botAI->GetUnit(member);
if (!unit || bot->GetGUID() == member)
{
continue;
}
if (!unit || bot->GetGUID() == member) { continue; }
if (bot->GetExactDist2d(unit) < targetDist)
{
float bossDistance = bot->GetExactDist2d(boss->GetPosition());
return MoveAway(unit, targetDist - bossDistance);
return MoveAway(unit, targetDist);
}
}
return false;