From 9f8bd31c54c6ec7d396798437019f5fe05cbd735 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 24 Jan 2018 12:08:43 -0500 Subject: [PATCH] Core/Player: recheck shapeshift bonus auras when switching spec. --- Source/Game/Entities/Player/Player.Talents.cs | 7 +++++++ Source/Game/Spells/Auras/AuraEffect.cs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Game/Entities/Player/Player.Talents.cs b/Source/Game/Entities/Player/Player.Talents.cs index 3ab411963..a2fcd5b76 100644 --- a/Source/Game/Entities/Player/Player.Talents.cs +++ b/Source/Game/Entities/Player/Player.Talents.cs @@ -385,6 +385,13 @@ namespace Game.Entities activeGlyphs.IsFullUpdate = true; SendPacket(activeGlyphs); + + var shapeshiftAuras = GetAuraEffectsByType(AuraType.ModShapeshift); + foreach (AuraEffect aurEff in shapeshiftAuras) + { + aurEff.HandleShapeshiftBoosts(this, false); + aurEff.HandleShapeshiftBoosts(this, true); + } } public Dictionary GetTalentMap(uint spec) { return _specializationInfo.Talents[spec]; } diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index 975b2bbd2..9fe0eefb0 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -768,7 +768,7 @@ namespace Game.Spells GetBase().CallScriptAfterEffectProcHandlers(this, aurApp, eventInfo); } - void HandleShapeshiftBoosts(Unit target, bool apply) + public void HandleShapeshiftBoosts(Unit target, bool apply) { uint spellId = 0; uint spellId2 = 0;