mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update NexusActions.cpp
Remove reference to boss distance
This commit is contained in:
@@ -52,15 +52,11 @@ bool FirebombSpreadAction::Execute(Event event)
|
|||||||
for (auto& member : members)
|
for (auto& member : members)
|
||||||
{
|
{
|
||||||
Unit* unit = botAI->GetUnit(member);
|
Unit* unit = botAI->GetUnit(member);
|
||||||
if (!unit || bot->GetGUID() == member)
|
if (!unit || bot->GetGUID() == member) { continue; }
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bot->GetExactDist2d(unit) < targetDist)
|
if (bot->GetExactDist2d(unit) < targetDist)
|
||||||
{
|
{
|
||||||
float bossDistance = bot->GetExactDist2d(boss->GetPosition());
|
return MoveAway(unit, targetDist);
|
||||||
return MoveAway(unit, targetDist - bossDistance);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user