diff options
author | silinoron <none@none> | 2010-07-31 10:46:33 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-07-31 10:46:33 -0700 |
commit | 9d93ebc8b7d92a7e48b45f7bc52c9f14d90d46a9 (patch) | |
tree | 6059a8fe9d419876809181d872f89d31bd86aad4 /src/server/game/Spells/SpellEffects.cpp | |
parent | c49ac64d947f83e85c157b8bb20e823ec2843bed (diff) |
Move SPELLFAMILY_PALADIN dummy spell effects for Holy Shock, Blessing of Faith, and Judgement of Command to spell scripts.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index a4cbdc1a81a..4dd3d267809 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1682,53 +1682,9 @@ void Spell::EffectDummy(uint32 i) m_caster->CastCustomSpell(unitTarget, 54171, &dmg, 0, 0, true); return; } - switch(m_spellInfo->SpellIconID) - { - case 156: // Holy Shock - { - if (!unitTarget) - return; - - int hurt = 0; - int heal = 0; - - switch(m_spellInfo->Id) - { - case 20473: hurt = 25912; heal = 25914; break; - case 20929: hurt = 25911; heal = 25913; break; - case 20930: hurt = 25902; heal = 25903; break; - case 27174: hurt = 27176; heal = 27175; break; - case 33072: hurt = 33073; heal = 33074; break; - case 48824: hurt = 48822; heal = 48820; break; - case 48825: hurt = 48823; heal = 48821; break; - default: - sLog.outError("Spell::EffectDummy: Spell %u not handled in HS",m_spellInfo->Id); - return; - } - - if (m_caster->IsFriendlyTo(unitTarget)) - m_caster->CastSpell(unitTarget, heal, true, 0); - else - m_caster->CastSpell(unitTarget, hurt, true, 0); - - return; - } - } switch(m_spellInfo->Id) { - case 20425: // Judgement of command - { - if (!unitTarget) - return; - - SpellEntry const* spell_proto = sSpellStore.LookupEntry(damage); - if (!spell_proto) - return; - - m_caster->CastSpell(unitTarget, spell_proto, true, NULL); - return; - } case 31789: // Righteous Defense (step 1) { // Clear targets for eff 1 @@ -1750,24 +1706,6 @@ void Spell::EffectDummy(uint32 i) // now let next effect cast spell at each target. return; } - case 37877: // Blessing of Faith - { - if (!unitTarget) - return; - - uint32 spell_id = 0; - switch(unitTarget->getClass()) - { - case CLASS_DRUID: spell_id = 37878; break; - case CLASS_PALADIN: spell_id = 37879; break; - case CLASS_PRIEST: spell_id = 37880; break; - case CLASS_SHAMAN: spell_id = 37881; break; - default: return; // ignore for not healing classes - } - - m_caster->CastSpell(m_caster, spell_id, true); - return; - } } break; case SPELLFAMILY_SHAMAN: |