mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/Quest): Drake Hunt drake flies away on subdue (#25589)
Co-authored-by: Claude Opus 4.7 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
92a9146f11
commit
9d834f0819
@@ -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