Fixed problems with Sacred Cleansing, by QAston.
Fixes issue 546. --HG-- branch : trunk
This commit is contained in:
@@ -2892,11 +2892,12 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
|||||||
return SPELL_MISS_MISS;
|
return SPELL_MISS_MISS;
|
||||||
|
|
||||||
// Chance resist mechanic (select max value from every mechanic spell effect)
|
// Chance resist mechanic (select max value from every mechanic spell effect)
|
||||||
int32 resist_chance = pVictim->GetMechanicResistChance(spell);
|
int32 resist_chance = pVictim->GetMechanicResistChance(spell)*100;
|
||||||
tmp += resist_chance;
|
tmp += resist_chance;
|
||||||
|
|
||||||
// Chance resist debuff
|
// Chance resist debuff
|
||||||
tmp -= pVictim->GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_DEBUFF_RESISTANCE, int32(spell->Dispel));
|
tmp += pVictim->GetMaxPositiveAuraModifierByMiscValue(SPELL_AURA_MOD_DEBUFF_RESISTANCE, int32(spell->Dispel)) * 100;
|
||||||
|
tmp += pVictim->GetMaxNegativeAuraModifierByMiscValue(SPELL_AURA_MOD_DEBUFF_RESISTANCE, int32(spell->Dispel)) * 100;
|
||||||
|
|
||||||
// Roll chance
|
// Roll chance
|
||||||
if (rand < tmp)
|
if (rand < tmp)
|
||||||
|
|||||||
Reference in New Issue
Block a user