Core/Spell: do not downscale certain auras

This commit is contained in:
hondacrx
2018-03-12 13:04:52 -04:00
parent 04ececae4c
commit ac2224808e
2 changed files with 5 additions and 9 deletions
+5 -2
View File
@@ -2996,6 +2996,10 @@ namespace Game.Spells
if (IsPassive())
return this;
// Client ignores spell with these attributes (sub_53D9D0)
if (HasAttribute(SpellAttr0.Negative1) || HasAttribute(SpellAttr2.Unk3))
return this;
bool needRankSelection = false;
foreach (SpellEffectInfo effect in GetEffectsForDifficulty(Difficulty.None))
{
@@ -3854,9 +3858,8 @@ namespace Game.Spells
level = (int)_spellInfo.MaxLevel;
else if (level < _spellInfo.BaseLevel)
level = (int)_spellInfo.BaseLevel;
if (!_spellInfo.IsPassive())
level -= (int)_spellInfo.SpellLevel;
level -= (int)_spellInfo.SpellLevel;
basePoints += (int)(level * basePointsPerLevel);
}