mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 23:33:47 +00:00
Spell cast time calculation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -293,7 +293,7 @@ bool UseItemAction::UseItem(Item* item, ObjectGuid goGuid, Item* itemTarget, Uni
|
||||
if (!spellId)
|
||||
return false;
|
||||
|
||||
botAI->SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
// botAI->SetNextCheckDelay(sPlayerbotAIConfig->globalCoolDown);
|
||||
botAI->TellMasterNoFacing(out.str());
|
||||
bot->GetSession()->HandleUseItemOpcode(packet);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user