From 76b8c4a10dccbfce3f87fdc8d2f1f4c65c65b6ef Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 5 Nov 2017 15:47:34 -0500 Subject: [PATCH] only apply shapeshift aura passives when changing forms --- Source/Game/Spells/Auras/AuraEffect.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index 037424c9a..9a24640bc 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -1392,7 +1392,12 @@ namespace Game.Spells if (aurApp.HasRemoveMode()) return; + ShapeShiftForm prevForm = target.GetShapeshiftForm(); target.SetShapeshiftForm(form); + // add the shapeshift aura's boosts + if (prevForm != form) + HandleShapeshiftBoosts(target, true); + if (modelid > 0) { SpellInfo transformSpellInfo = Global.SpellMgr.GetSpellInfo(target.GetTransForm()); @@ -1435,11 +1440,10 @@ namespace Game.Spells default: break; } - } - // adding/removing linked auras - // add/remove the shapeshift aura's boosts - HandleShapeshiftBoosts(target, apply); + // remove the shapeshift aura's boosts + HandleShapeshiftBoosts(target, apply); + } if (target.IsTypeId(TypeId.Player)) target.ToPlayer().InitDataForForm();