Core/Spells: Drop unrelated manaCostPct check from Spell::EffectPowerBurn and use explicit check instead, fixes some power burn spells.
This commit is contained in:
@@ -2167,7 +2167,7 @@ void Spell::EffectPowerBurn(SpellEffIndex effIndex)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// burn x% of target's mana, up to maximum of 2x% of caster's mana (Mana Burn)
|
// burn x% of target's mana, up to maximum of 2x% of caster's mana (Mana Burn)
|
||||||
if (m_spellInfo->ManaCostPercentage)
|
if (m_spellInfo->Id == 8129)
|
||||||
{
|
{
|
||||||
int32 maxDamage = int32(CalculatePctN(m_caster->GetMaxPower(powerType), damage * 2));
|
int32 maxDamage = int32(CalculatePctN(m_caster->GetMaxPower(powerType), damage * 2));
|
||||||
damage = int32(CalculatePctN(unitTarget->GetMaxPower(powerType), damage));
|
damage = int32(CalculatePctN(unitTarget->GetMaxPower(powerType), damage));
|
||||||
|
|||||||
Reference in New Issue
Block a user