aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-07-21 19:05:12 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-17 00:29:59 +0100
commitf6df334bb63a301cd94fb078bb80cddcca7624b5 (patch)
tree1d40f5dcd8c7a281927104104ebde87e50382dfb /src
parent4c754de7a889d19e59830e755c86f6fda9ba3c54 (diff)
Script/ScarletEnclave: remove Eye of Acherus control and speed auras from player when the Eye of Acherus is dismissed.
(cherry picked from commit bf8741c53d299a1d167354a174f5e40ae1981551)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index 44c13ff1aea..37572cdc7a3 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -406,6 +406,7 @@ class spell_death_knight_initiate_visual : public SpellScript
enum EyeOfAcherusMisc
{
+ SPELL_THE_EYE_OF_ACHERUS = 51852,
SPELL_EYE_VISUAL = 51892,
SPELL_EYE_FLIGHT_BOOST = 51923,
SPELL_EYE_FLIGHT = 51890,
@@ -461,7 +462,14 @@ class npc_eye_of_acherus : public CreatureScript
me->GetMotionMaster()->LaunchMoveSpline(std::move(init), POINT_EYE_FALL, MOTION_PRIORITY_NORMAL, POINT_MOTION_TYPE);
}
- void OnCharmed(bool /*isNew*/) override { }
+ void OnCharmed(bool /*isNew*/) override
+ {
+ if (!me->IsCharmed())
+ {
+ me->GetCharmerOrOwner()->RemoveAurasDueToSpell(SPELL_THE_EYE_OF_ACHERUS);
+ me->GetCharmerOrOwner()->RemoveAurasDueToSpell(SPELL_EYE_FLIGHT_BOOST);
+ }
+ }
void UpdateAI(uint32 diff) override
{