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)
This commit is contained in:
Jelly
2025-06-21 03:09:19 -05:00
committed by GitHub
parent 7d6f44ab09
commit 9a10f07c74

View File

@@ -83,7 +83,12 @@ 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(); 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(); bot->AttackStop();
// if (Pet* pet = bot->GetPet()) // if (Pet* pet = bot->GetPet())