mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 23:38:00 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user