mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Fix
This commit is contained in:
@@ -4150,6 +4150,10 @@ bool ArenaTactics::Execute(Event event)
|
|||||||
if (bot->isDead())
|
if (bot->isDead())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (bot->isMoving())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// startup phase
|
||||||
if (bg->GetStartDelayTime() > 0)
|
if (bg->GetStartDelayTime() > 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -4177,7 +4181,7 @@ bool ArenaTactics::Execute(Event event)
|
|||||||
|
|
||||||
float x, y, z;
|
float x, y, z;
|
||||||
target->GetPosition(x, y, z);
|
target->GetPosition(x, y, z);
|
||||||
botAI->TellMasterNoFacing("Repositioning to regain LoS");
|
botAI->TellMasterNoFacing("Repositioning to exit the LoS target!");
|
||||||
return MoveTo(target->GetMapId(), x + frand(-1, +1), y + frand(-1, +1), z, false, true);
|
return MoveTo(target->GetMapId(), x + frand(-1, +1), y + frand(-1, +1), z, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user