[Spell] Dont interrupt spell on drop target

This commit is contained in:
Yunfan Li
2024-10-06 12:35:04 +08:00
parent 269deafc84
commit eb0d222598
2 changed files with 2 additions and 2 deletions

View File

@@ -1515,7 +1515,7 @@ void PlayerbotAI::DoNextAction(bool min)
void PlayerbotAI::ReInitCurrentEngine() void PlayerbotAI::ReInitCurrentEngine()
{ {
InterruptSpell(); // InterruptSpell();
currentEngine->Init(); currentEngine->Init();
} }

View File

@@ -82,7 +82,7 @@ bool DropTargetAction::Execute(Event event)
bot->SetTarget(ObjectGuid::Empty); bot->SetTarget(ObjectGuid::Empty);
bot->SetSelection(ObjectGuid()); bot->SetSelection(ObjectGuid());
botAI->ChangeEngine(BOT_STATE_NON_COMBAT); botAI->ChangeEngine(BOT_STATE_NON_COMBAT);
botAI->InterruptSpell(); // botAI->InterruptSpell();
bot->AttackStop(); bot->AttackStop();
// if (Pet* pet = bot->GetPet()) // if (Pet* pet = bot->GetPet())