diff options
author | QAston <none@none> | 2009-02-02 18:55:03 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-02-02 18:55:03 +0100 |
commit | 55829e81f7a670e3c915b5ed08affcc8295074f9 (patch) | |
tree | 46d408d6a0a3430f5af8930afccb397750f1fc1f /src/game/Spell.cpp | |
parent | dca9c4cc1f0229ab97dbe4e6e8486deaef978fcf (diff) |
*Update spel_lchain extraction for 308 dbc.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 907b1036b49..c97e35f1396 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2157,11 +2157,24 @@ void Spell::cast(bool skipCheck) else if (m_spellInfo->excludeTargetAuraSpell) m_preCastSpell = m_spellInfo->excludeTargetAuraSpell; } - else if (m_spellInfo->Mechanic == MECHANIC_BANDAGE) // Bandages - m_preCastSpell = 11196; // Recently Bandaged - else if(m_spellInfo->SpellIconID == 1662 && m_spellInfo->AttributesEx & 0x20) - m_preCastSpell = 23230; // Blood Fury - Healing Reduction + switch (m_spellInfo->SpellFamilyName) + { + case SPELLFAMILY_GENERIC: + { + if (m_spellInfo->Mechanic == MECHANIC_BANDAGE) // Bandages + m_preCastSpell = 11196; // Recently Bandaged + else if(m_spellInfo->SpellIconID == 1662 && m_spellInfo->AttributesEx & 0x20) + 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 m_targets.updateTradeSlotItem(); |