fixed totem rank scaling with low level players

This commit is contained in:
Yehonal
2017-02-23 15:54:14 +01:00
parent 5514859e56
commit b652300542
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3274,7 +3274,7 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const* triggered
InitExplicitTargets(*targets); InitExplicitTargets(*targets);
// Fill aura scaling information // Fill aura scaling information
if (m_caster->IsControlledByPlayer() && !m_spellInfo->IsPassive() && m_spellInfo->SpellLevel && !m_spellInfo->IsChanneled() && !(_triggeredCastFlags & TRIGGERED_IGNORE_AURA_SCALING)) if (m_caster->IsTotem() || (m_caster->IsControlledByPlayer() && !m_spellInfo->IsPassive() && m_spellInfo->SpellLevel && !m_spellInfo->IsChanneled() && !(_triggeredCastFlags & TRIGGERED_IGNORE_AURA_SCALING)))
{ {
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{ {
+2 -2
View File
@@ -2446,8 +2446,8 @@ SpellInfo const* SpellInfo::GetPrevRankSpell() const
SpellInfo const* SpellInfo::GetAuraRankForLevel(uint8 level) const SpellInfo const* SpellInfo::GetAuraRankForLevel(uint8 level) const
{ {
// ignore passive spells // ignore passive spells
if (IsPassive()) //if (IsPassive())
return this; // return this;
bool needRankSelection = false; bool needRankSelection = false;
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)