From babb7d6c69ee74dd37be6dc5eb3877399d772148 Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Sat, 6 Nov 2021 23:51:54 -0300 Subject: [PATCH] fix(Core/Spells): Exploit with silithyst aura (#9014) --- src/server/scripts/Spells/spell_generic.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index e4a499cdb..e45fe4f1b 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -5464,7 +5464,10 @@ public: void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { - GetCaster()->SummonGameObject(181597, GetCaster()->GetPositionX(), GetCaster()->GetPositionY(), GetCaster()->GetPositionZ(), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 10 * IN_MILLISECONDS * MINUTE); + if (GetCaster()->IsMounted()) + { + GetCaster()->SummonGameObject(181597, GetCaster()->GetPositionX(), GetCaster()->GetPositionY(), GetCaster()->GetPositionZ(), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 10 * IN_MILLISECONDS * MINUTE); + } } void Register() override