Fixed Improved Mind Blast heal reduction

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-20 17:07:20 +01:00
parent f4a415badf
commit b5202f91b2
+11
View File
@@ -533,6 +533,17 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
if(back_damage < unitTarget->GetHealth()) if(back_damage < unitTarget->GetHealth())
m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true); m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true);
} }
// Mind Blast - applies Mind Trauma if:
else if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x2000))
{
// We are in Shadow Form
if (m_caster->m_form == FORM_SHADOW)
// We have Improved Mind Blast
if (AuraEffect * aurEff = m_caster->GetDummyAura(SPELLFAMILY_PRIEST,95,0))
// Chance has been successfully rolled
if (roll_chance_i(aurEff->GetSpellProto()->EffectBasePoints[1] + 1))
m_caster->CastSpell(unitTarget, 48301, true);
}
// Smite // Smite
else if (m_spellInfo->SpellFamilyFlags[0] & 0x80) else if (m_spellInfo->SpellFamilyFlags[0] & 0x80)
{ {