Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
- index d775eae..e9449a4 100644
- --- a/src/game/SpellAuras.cpp
- +++ b/src/game/SpellAuras.cpp
- @@ -1693,8 +1693,12 @@ void Aura::TriggerSpell()
- target->CastCustomSpell(target, 29879, &bpDamage, NULL, NULL, true, NULL, this, casterGUID);
- return;
- }
- -// // Detonate Mana
- -// case 27819: break;
- + // Detonate Mana
- + case 27819:
- + {
- + target->CastSpell(target, 27820, true, NULL, this, target->GetGUID() );
- + return;
- + }
- // // Controller Timer
- // case 28095: break;
- // // Stalagg Chain
- diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
- index e14619b..779ad70 100644
- --- a/src/game/SpellEffects.cpp
- +++ b/src/game/SpellEffects.cpp
- @@ -377,6 +377,21 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
- damage = damage * unitTarget->GetMaxHealth() / 100;
- break;
- }
- + // Mana Detonation
- + case 27820:
- + {
- + uint32 uiMana = m_caster->GetPower(POWER_MANA);
- + uint32 uiBurnMana = urand(1800, 2200);
- + m_caster->SetPower(POWER_MANA, uiBurnMana > uiMana ? 0 : uiMana - uiBurnMana);
- + if (unitTarget == m_caster)
- + {
- + damage = 0;
- + break;
- + }
- + else
- + damage = uiMana;
- + break;
- + }
- // Cataclysmic Bolt
- case 38441:
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement