Spell cast time calculation

This commit is contained in:
Yunfan Li
2024-02-07 21:37:19 +08:00
parent 1a11ec0717
commit 5e2497bf7e
4 changed files with 15 additions and 20 deletions

View File

@@ -26,9 +26,9 @@ bool DrinkAction::Execute(Event event)
if (bot->isMoving())
{
// bot->StopMoving();
bot->StopMoving();
// botAI->SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
return false;
// return false;
}
bot->SetStandState(UNIT_STAND_STATE_SIT);
botAI->InterruptSpell();
@@ -78,9 +78,9 @@ bool EatAction::Execute(Event event)
if (bot->isMoving())
{
// bot->StopMoving();
bot->StopMoving();
// botAI->SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
return false;
// return false;
}
bot->SetStandState(UNIT_STAND_STATE_SIT);