mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Merge pull request #582 from liyunfan1223/fix_interrupt
[Spell] Dont interrupt spell on drop target
This commit is contained in:
commit
c68d5ef899
@ -1515,7 +1515,7 @@ void PlayerbotAI::DoNextAction(bool min)
|
|||||||
|
|
||||||
void PlayerbotAI::ReInitCurrentEngine()
|
void PlayerbotAI::ReInitCurrentEngine()
|
||||||
{
|
{
|
||||||
InterruptSpell();
|
// InterruptSpell();
|
||||||
currentEngine->Init();
|
currentEngine->Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user