From ab3bf08b6001636b5f503f7b4f933ffbe3d839db Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 9 Sep 2021 13:39:25 -0400 Subject: [PATCH] Core/Spells: only apply aura effects when needed. Port From (https://github.com/TrinityCore/TrinityCore/commit/5491b7f89ff466b4f78e99801d135b2e736a7635) --- Source/Game/Spells/Spell.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 67b4e9491..030f1b0b4 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -7977,7 +7977,8 @@ namespace Game.Spells if ((effMask & (1 << (int)i)) != 0 && aurApp.HasEffect(i)) effMask &= ~(1u << (int)i); - _spellHitTarget._ApplyAura(aurApp, effMask); + if (effMask != 0) + _spellHitTarget._ApplyAura(aurApp, effMask); } }