mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[0146] Cleanup deprecated item mods and combat ratings
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
826c15da12
commit
3153bd2129
9 changed files with 149 additions and 279 deletions
|
|
@ -4064,7 +4064,7 @@ void Spell::EffectPowerDrain(SpellEffectEntry const* effect)
|
|||
// resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)
|
||||
uint32 power = damage;
|
||||
if (drain_power == POWER_MANA)
|
||||
power -= unitTarget->GetSpellCritDamageReduction(power);
|
||||
power -= unitTarget->GetCritDamageReduction(power);
|
||||
|
||||
int32 new_damage;
|
||||
if (curPower < power)
|
||||
|
|
@ -4131,7 +4131,7 @@ void Spell::EffectPowerBurn(SpellEffectEntry const* effect)
|
|||
// resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)
|
||||
int32 power = damage;
|
||||
if (powertype == POWER_MANA)
|
||||
power -= unitTarget->GetSpellCritDamageReduction(power);
|
||||
power -= unitTarget->GetCritDamageReduction(power);
|
||||
|
||||
int32 new_damage = (curPower < power) ? curPower : power;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue