mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Auto teleport check; Miscs
This commit is contained in:
@@ -11,6 +11,9 @@ bool AutoTeleportForLevelAction::Execute(Event event) {
|
||||
if (!sPlayerbotAIConfig->autoTeleportForLevel || !sRandomPlayerbotMgr->IsRandomBot(bot)) {
|
||||
return false;
|
||||
}
|
||||
if (botAI->HasRealPlayerMaster()) {
|
||||
return false;
|
||||
}
|
||||
sRandomPlayerbotMgr->RandomTeleportForLevel(bot);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1055,7 +1055,8 @@ float MovementAction::MoveDelay(float distance)
|
||||
|
||||
void MovementAction::WaitForReach(float distance)
|
||||
{
|
||||
float delay = 1000.0f * MoveDelay(distance) + sPlayerbotAIConfig->reactDelay;
|
||||
float delay = 1000.0f * MoveDelay(distance);
|
||||
|
||||
if (delay > sPlayerbotAIConfig->maxWaitForMove)
|
||||
delay = sPlayerbotAIConfig->maxWaitForMove;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user