spell modification

This commit is contained in:
Yunfan Li
2023-10-04 22:32:04 +08:00
parent 5903e0e5ab
commit 4672b3edcf
11 changed files with 29 additions and 13 deletions

View File

@@ -212,6 +212,9 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal)
// }
return;
}
if (!GetMaster() || !GetMaster()->IsInWorld() || !GetMaster()->GetSession() || GetMaster()->GetSession()->isLogingOut()) {
return;
}
// if (bot->HasUnitMovementFlag(MOVEMENTFLAG_FALLING)) {
// bot->Say("Falling!", LANG_UNIVERSAL);
// }
@@ -959,7 +962,7 @@ void PlayerbotAI::DoNextAction(bool min)
SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
return;
}
if (bot->HasUnitState(UNIT_STATE_IN_FLIGHT))
{
SetNextCheckDelay(sPlayerbotAIConfig->passiveDelay);