mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Events: Fixed infinite loop with auras 71507 and 71508 casting each other when unit is removed from map
(cherry picked from commit 70e985c7f7)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user