mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
[Fix] teleport to invalid map or invalid coordinates (x , y , z 200000, o ) given when teleporting player (g UI d full type player low , name , map , x , y , z , o ) (#1538)
* MoveSplineInitArgs::Validate: expression 'velocity > 0.01f' failed for GUID Full * Update BotMovementUtils.h * Playerbots: guard against invalid-Z teleports
This commit is contained in:
@@ -721,6 +721,7 @@ void PlayerbotAI::HandleTeleportAck()
|
||||
bot->GetSession()->HandleMoveWorldportAck();
|
||||
}
|
||||
// SetNextCheckDelay(urand(2000, 5000));
|
||||
SetNextCheckDelay(urand(500, 1500)); // short delay to break bursts without hindering gameplay
|
||||
if (sPlayerbotAIConfig->applyInstanceStrategies)
|
||||
ApplyInstanceStrategies(bot->GetMapId(), true);
|
||||
EvaluateHealerDpsStrategy();
|
||||
|
||||
Reference in New Issue
Block a user