diff options
| author | megamage <none@none> | 2009-02-26 20:36:28 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-26 20:36:28 -0600 |
| commit | 39c513776c5dde8b5732df5ba2467d9e9e3e84fd (patch) | |
| tree | f23965c73ae7030501bbfb4f6c2483729276e7d6 /src/game/Spell.cpp | |
| parent | 85d5d94e71e4ad2b49889253da1c2b1679050541 (diff) | |
| parent | 2f0beef0ddc805b586ba9b6ccda01891a73fba64 (diff) | |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index aa04784fb97..9d9fdc70305 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1127,7 +1127,20 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) // Apply additional spell effects to target if (m_preCastSpell) - m_caster->CastSpell(unit,m_preCastSpell, true, m_CastItem); + { + // Special spell id + // TODO: Handle all of special spells in one place? + if(m_preCastSpell==61988) + { + //Cast forbearance + m_caster->CastSpell(unit,25771, true, m_CastItem); + // Cast Avenging Wrath Marker + m_caster->CastSpell(unit,61987, true, m_CastItem); + } + else + m_caster->CastSpell(unit,m_preCastSpell, true, m_CastItem); + } + for(uint32 effectNumber=0;effectNumber<3;effectNumber++) { @@ -2179,13 +2192,6 @@ void Spell::cast(bool skipCheck) m_preCastSpell = 23230; // Blood Fury - Healing Reduction break; } - - case SPELLFAMILY_PRIEST: - { - if (m_spellInfo->Id == 47585) // Dispersion (transform) - m_preCastSpell = 60069; // Dispersion (mana regen) - break; - } } // traded items have trade slot instead of guid in m_itemTargetGUID // set to real guid to be sent later to the client |
