mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08: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;
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user