From 66b199e7951ac9f7405c0df1ee31a0c1fd4f6e4e Mon Sep 17 00:00:00 2001 From: Bobblybook Date: Sun, 20 Oct 2024 16:08:20 +1100 Subject: [PATCH] Update NexusActions.cpp Remove reference to boss distance --- src/strategy/dungeons/wotlk/nexus/NexusActions.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/strategy/dungeons/wotlk/nexus/NexusActions.cpp b/src/strategy/dungeons/wotlk/nexus/NexusActions.cpp index 775925e7..90233543 100644 --- a/src/strategy/dungeons/wotlk/nexus/NexusActions.cpp +++ b/src/strategy/dungeons/wotlk/nexus/NexusActions.cpp @@ -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;