fix(Scripts/Quest): Drake Hunt drake flies away on subdue (#25589)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Andrew 2026-04-25 12:27:39 -03:00 committed by GitHub
parent 92a9146f11
commit 9d834f0819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,7 @@
#include "ScriptedEscortAI.h"
#include "ScriptedFollowerAI.h"
#include "ScriptedGossip.h"
#include "SmartAI.h"
#include "SpellAuras.h"
#include "SpellInfo.h"
#include "SpellScript.h"
@ -55,6 +56,8 @@ class spell_q11919_q11940_drake_hunt_aura : public AuraScript
Creature* owner = GetOwner()->ToCreature();
owner->RemoveAllAurasExceptType(SPELL_AURA_DUMMY);
if (SmartAI* ai = CAST_AI(SmartAI, owner->AI()))
ai->SetEvadeDisabled(true);
owner->CombatStop(true);
owner->GetThreatMgr().ClearAllThreat();
owner->GetMotionMaster()->Clear(false);