Advertisement
Guest User

Untitled

a guest
May 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.95 KB | None | 0 0
  1. diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
  2. index d775eae..e9449a4 100644
  3. --- a/src/game/SpellAuras.cpp
  4. +++ b/src/game/SpellAuras.cpp
  5. @@ -1693,8 +1693,12 @@ void Aura::TriggerSpell()
  6.                          target->CastCustomSpell(target, 29879, &bpDamage, NULL, NULL, true, NULL, this, casterGUID);
  7.                          return;
  8.                      }
  9. -//                    // Detonate Mana
  10. -//                    case 27819: break;
  11. +                    // Detonate Mana
  12. +                    case 27819:
  13. +                    {
  14. +                        target->CastSpell(target, 27820, true, NULL, this, target->GetGUID() );
  15. +                        return;
  16. +                    }
  17.  //                    // Controller Timer
  18.  //                    case 28095: break;
  19.  //                    // Stalagg Chain
  20. diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
  21. index e14619b..779ad70 100644
  22. --- a/src/game/SpellEffects.cpp
  23. +++ b/src/game/SpellEffects.cpp
  24. @@ -377,6 +377,21 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
  25.                          damage = damage * unitTarget->GetMaxHealth() / 100;
  26.                          break;
  27.                      }
  28. +                    // Mana Detonation
  29. +                    case 27820:
  30. +                    {
  31. +                        uint32 uiMana = m_caster->GetPower(POWER_MANA);
  32. +                        uint32 uiBurnMana = urand(1800, 2200);
  33. +                        m_caster->SetPower(POWER_MANA, uiBurnMana > uiMana ? 0 : uiMana - uiBurnMana);
  34. +                        if (unitTarget == m_caster)
  35. +                        {
  36. +                            damage = 0;
  37. +                            break;
  38. +                        }
  39. +                        else
  40. +                            damage = uiMana;
  41. +                        break;
  42. +                    }
  43.                      // Cataclysmic Bolt
  44.                      case 38441:
  45.                      {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement