fix rndbot stuck bug

This commit is contained in:
Yunfan Li
2023-10-07 19:32:25 +08:00
parent 844a0e36d2
commit ea50b249bb

View File

@@ -212,9 +212,9 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal)
// }
return;
}
if (!GetMaster() || !GetMaster()->IsInWorld() || !GetMaster()->GetSession() || GetMaster()->GetSession()->isLogingOut()) {
return;
}
// if (!GetMaster() || !GetMaster()->IsInWorld() || !GetMaster()->GetSession() || GetMaster()->GetSession()->isLogingOut()) {
// return;
// }
// if (bot->HasUnitMovementFlag(MOVEMENTFLAG_FALLING)) {
// bot->Say("Falling!", LANG_UNIVERSAL);
// }