Core/Player: recheck shapeshift bonus auras when switching spec.

This commit is contained in:
hondacrx
2018-01-24 12:08:43 -05:00
parent 659080b5a5
commit 9f8bd31c54
2 changed files with 8 additions and 1 deletions
@@ -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<uint, PlayerSpellState> GetTalentMap(uint spec) { return _specializationInfo.Talents[spec]; }
+1 -1
View File
@@ -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;