Pelf

Pelf early frost 1

May 31st, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.38 KB | None | 0 0
  1. diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
  2. index a391398..5da09c5 100644
  3. --- a/src/server/game/Spells/SpellEffects.cpp
  4. +++ b/src/server/game/Spells/SpellEffects.cpp
  5. @@ -1130,6 +1130,26 @@ void Spell::SpellDamageSchoolDmg(SpellEffIndex effIndex)
  6.              }
  7.              case SPELLFAMILY_MAGE:
  8.              {
  9. +                // FrostBolt
  10. +                if (m_spellInfo->Id == 116)
  11. +                {
  12. +                    // Early Frost
  13. +                    if (AuraEffect* aurEff = m_caster->GetAuraEffect(SPELL_AURA_ADD_FLAT_MODIFIER, SPELLFAMILY_MAGE, 189, 0))
  14. +                    {
  15. +                        uint32 spellId = 0;
  16. +                        switch (aurEff->GetId())
  17. +                        {
  18. +                            case 83049:
  19. +                                spellId = 83162;
  20. +                                break;
  21. +                            case 83050:
  22. +                                spellId = 83239;
  23. +                                break;
  24. +                        }
  25. +                        if(spellId && !m_caster->HasAura(spellId))
  26. +                            m_caster->CastSpell(m_caster, spellId, true);
  27. +                    }
  28. +                }
  29.                  if (m_spellInfo->Id == 42208) // Blizzard
  30.                  {
  31.                      if (m_caster && m_caster->HasAura(11185))
Advertisement
Add Comment
Please, Sign In to add comment