Scripts/Events: Fixed infinite loop with auras 71507 and 71508 casting each other when unit is removed from map
Port From (https://github.com/TrinityCore/TrinityCore/commit/f79cd0f526af552d0df06b80dca951d6f1f8ae55)
This commit is contained in:
@@ -180,6 +180,7 @@ namespace Scripts.Events.LoveIsInTheAir
|
||||
|
||||
void AfterRemove(AuraEffect aurEff, AuraEffectHandleModes mode)
|
||||
{
|
||||
if (GetTargetApplication().GetRemoveMode() == AuraRemoveMode.Expire)
|
||||
GetTarget().CastSpell(GetTarget(), SpellIds.HeavilyPerfumed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user