Cleanup in spell code

--HG--
branch : trunk
This commit is contained in:
win32
2009-12-21 15:45:28 +02:00
parent c3ee3f537d
commit c92fbc0dfb
4 changed files with 84 additions and 133 deletions

View File

@@ -534,14 +534,14 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true);
}
// Mind Blast - applies Mind Trauma if:
else if (m_spellInfo->SpellFamilyFlags[0] & 0x2000)
else if (m_spellInfo->SpellFamilyFlags[0] & 0x00002000)
{
// 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))
if (roll_chance_i(aurEff->GetAmount()))
m_caster->CastSpell(unitTarget, 48301, true);
}
// Smite