aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-06 00:08:19 -0500
committermegamage <none@none>2009-05-06 00:08:19 -0500
commita3447b294d371e4564703820cdf95cd250e4773e (patch)
treed00ad07617475a33d0b7b66ee9a66bf2cd0d4a5e /src/game/SpellAuras.cpp
parent4045c881abce892dabcb55a19e7422076e9ce53a (diff)
*Update Naxx scripts.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 29783de6c70..66b1392b3a3 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1677,13 +1677,19 @@ void AuraEffect::TriggerSpell()
// case 27747: break;
// Frost Blast
case 27808:
+ caster->CastCustomSpell(29879, SPELLVALUE_BASE_POINT0, target->GetMaxHealth()*0.26f, m_target, true, NULL, this);
+ return;
+ // Detonate Mana
+ case 27819:
{
- int32 bpDamage = target->GetMaxHealth()*26/100;
- caster->CastCustomSpell(target,29879,&bpDamage,NULL,NULL,true,NULL,this);
+ int32 mana = (uint32)m_target->GetMaxPower(POWER_MANA)*0.25f;
+ if(mana)
+ {
+ mana = m_target->ModifyPower(POWER_MANA, -mana);
+ m_target->CastCustomSpell(27820, SPELLVALUE_BASE_POINT0, -mana*4, NULL, true, NULL, this, caster->GetGUID());
+ }
return;
- }
-// // Detonate Mana
-// case 27819: break;
+ }
// // Controller Timer
// case 28095: break;
// // Stalagg Chain
@@ -2205,6 +2211,9 @@ void AuraEffect::TriggerSpell()
// Mind Sear (target 76/16) if let m_target cast, will damage caster
case 48045:
case 53023:
+ // Curse of the Plaguebringer (22/15)
+ case 29213:
+ case 54835:
caster->CastSpell(m_target, trigger_spell_id, true);
return;
}