fixed totem rank scaling with low level players
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user