From f79cd0f526af552d0df06b80dca951d6f1f8ae55 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 9 Feb 2023 10:26:42 +0100 Subject: Scripts/Events: Fixed infinite loop with auras 71507 and 71508 casting each other when unit is removed from map (cherry picked from commit 70e985c7f715951035b0e168c0222405d62758b3) --- src/server/scripts/Events/love_is_in_the_air.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Events/love_is_in_the_air.cpp b/src/server/scripts/Events/love_is_in_the_air.cpp index 2accb9abca8..c79aea25f16 100644 --- a/src/server/scripts/Events/love_is_in_the_air.cpp +++ b/src/server/scripts/Events/love_is_in_the_air.cpp @@ -212,7 +212,8 @@ class spell_love_is_in_the_air_recently_analyzed : public AuraScript void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { - GetTarget()->CastSpell(GetTarget(), SPELL_HEAVILY_PERFUMED); + if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE) + GetTarget()->CastSpell(GetTarget(), SPELL_HEAVILY_PERFUMED); } void Register() override -- cgit v1.2.3