Implement player's pet resilience, also fix DoT case. by VladimirMangos and thx tali
--HG-- branch : trunk
This commit is contained in:
1 parent
5f0c623f8a
commit
1d79bc51ea
6 files changed
+81
-93
No files matched your search
@@ -2646,8 +2646,8 @@ void Spell::EffectPowerDrain(uint32 i)
|
||||
|
||||
// resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)
|
||||
uint32 power = damage;
|
||||
if ( drain_power == POWER_MANA && unitTarget->GetTypeId() == TYPEID_PLAYER )
|
||||
power -= ((Player*)unitTarget)->GetSpellCritDamageReduction(power);
|
||||
if (drain_power == POWER_MANA)
|
||||
power -= unitTarget->GetSpellCritDamageReduction(power);
|
||||
|
||||
int32 new_damage;
|
||||
if(curPower < power)
|
||||
@@ -2712,8 +2712,8 @@ void Spell::EffectPowerBurn(uint32 i)
|
||||
|
||||
uint32 power = damage;
|
||||
// resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)
|
||||
if ( powertype == POWER_MANA && unitTarget->GetTypeId() == TYPEID_PLAYER )
|
||||
power -= ((Player*)unitTarget)->GetSpellCritDamageReduction(power);
|
||||
if (powertype == POWER_MANA)
|
||||
power -= unitTarget->GetSpellCritDamageReduction(power);
|
||||
|
||||
int32 new_damage = (curPower < power) ? curPower : power;
|
||||
|
||||
|
||||
Reference in new issue
Block a user