mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-05 11:53:49 +00:00
Merge pull request #624 from EricksOliveira/patch-7
Fix Crash The Nexux
This commit is contained in:
@@ -54,9 +54,16 @@ bool FirebombSpreadAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (bot->GetExactDist2d(botAI->GetUnit(member)) < targetDist)
|
|
||||||
|
Unit* unit = botAI->GetUnit(member);
|
||||||
|
if (!unit)
|
||||||
{
|
{
|
||||||
return MoveAway(botAI->GetUnit(member), targetDist);
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bot->GetExactDist2d(unit) < targetDist)
|
||||||
|
{
|
||||||
|
return MoveAway(unit, targetDist);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user