diff options
author | n0n4m3 <none@none> | 2009-12-20 17:07:20 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-20 17:07:20 +0100 |
commit | b5202f91b22ad899fb3996dd06dadec1cce7e4c3 (patch) | |
tree | bbba4a70a26cc6d88883551eefc1bfad0c41d77d /src | |
parent | f4a415badf35de89bed3ac768914206cc2465bd4 (diff) |
Fixed Improved Mind Blast heal reduction
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 8ceceb01411..c037eb9160d 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -533,6 +533,17 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) if(back_damage < unitTarget->GetHealth()) 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 else if (m_spellInfo->SpellFamilyFlags[0] & 0x80) { |