Skip to content

Commit d7c31e0

Browse files
ShockerShauren
authored andcommitted
Fix build
(cherry picked from commit 443ea12)
1 parent 0e7b46e commit d7c31e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/server/game/Spells/SpellInfo.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,10 +3279,10 @@ int32 SpellInfo::CalcPowerCost(WorldObject const* caster, SpellSchoolMask school
32793279
return 0;
32803280
}
32813281
}
3282-
SpellSchools school = GetFirstSchoolInMask(schoolMask);
3283-
// Flat mod from caster auras by spell school
3284-
AuraEffectList const& auras = unitCaster->GetAuraEffectsByType(SPELL_AURA_MOD_POWER_COST_SCHOOL);
3285-
for (AuraEffectList::const_iterator i = auras.begin(); i != auras.end(); ++i)
3282+
3283+
// Flat mod from caster auras by spell school and power type
3284+
Unit::AuraEffectList const& auras = unitCaster->GetAuraEffectsByType(SPELL_AURA_MOD_POWER_COST_SCHOOL);
3285+
for (Unit::AuraEffectList::const_iterator i = auras.begin(); i != auras.end(); ++i)
32863286
{
32873287
if (!((*i)->GetMiscValue() & schoolMask))
32883288
continue;
@@ -3317,9 +3317,9 @@ int32 SpellInfo::CalcPowerCost(WorldObject const* caster, SpellSchoolMask school
33173317
}
33183318
}
33193319

3320-
// PCT mod from user auras by school
3321-
AuraEffectList const& aurasPct = unitCaster->GetAuraEffectsByType(SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT);
3322-
for (AuraEffectList::const_iterator i = aurasPct.begin(); i != aurasPct.end(); ++i)
3320+
// PCT mod from user auras by spell school and power type
3321+
Unit::AuraEffectList const& aurasPct = unitCaster->GetAuraEffectsByType(SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT);
3322+
for (Unit::AuraEffectList::const_iterator i = aurasPct.begin(); i != aurasPct.end(); ++i)
33233323
{
33243324
if (!((*i)->GetMiscValue() & schoolMask))
33253325
continue;

0 commit comments

Comments
 (0)