diff options
| author | win32 <none@none> | 2009-12-21 15:45:28 +0200 |
|---|---|---|
| committer | win32 <none@none> | 2009-12-21 15:45:28 +0200 |
| commit | c92fbc0dfbe4218f9fad46e9a2b7164df7bd7049 (patch) | |
| tree | 9ede2c0ab60533c51ef6ef489b2daddd7e571b21 /src/game/SpellEffects.cpp | |
| parent | c3ee3f537da78d24f540375f34a63dbf0aadfe28 (diff) | |
Cleanup in spell code
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 3f3ce8e12fe..d29c106c003 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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 |
