mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Update NexusActions.cpp
Remove reference to boss distance
This commit is contained in:
parent
159cd1ad71
commit
66b199e795
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user