From 9a10f07c7404a3bee2b2dcc198a16995dfea712a Mon Sep 17 00:00:00 2001 From: Jelly Date: Sat, 21 Jun 2025 03:09:19 -0500 Subject: [PATCH] Fixes #1093 (Hunter's stuck in Auto shot pose and Can't equip gear) (#1377) * Fixes #1093 (Hunter's stuck in Autoshoot and Can't equip gear) * Fixes #1093 (Hunter's stuck in Autoshoot and Can't equip gear) --- src/strategy/actions/ChooseTargetActions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/strategy/actions/ChooseTargetActions.cpp b/src/strategy/actions/ChooseTargetActions.cpp index c5713369..77dc08fb 100644 --- a/src/strategy/actions/ChooseTargetActions.cpp +++ b/src/strategy/actions/ChooseTargetActions.cpp @@ -83,7 +83,12 @@ bool DropTargetAction::Execute(Event event) bot->SetTarget(ObjectGuid::Empty); bot->SetSelection(ObjectGuid()); botAI->ChangeEngine(BOT_STATE_NON_COMBAT); - // botAI->InterruptSpell(); + if (bot->getClass() == CLASS_HUNTER && + (bot->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)->m_spellInfo->Id == 75)) + //Is bot a hunter and is Auto Shot Active? + { + bot->InterruptSpell(CURRENT_AUTOREPEAT_SPELL); // Interrupt Auto Shot + } bot->AttackStop(); // if (Pet* pet = bot->GetPet())