aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-28 15:36:17 +0200
committerQAston <none@none>2009-08-28 15:36:17 +0200
commit3094cefe75b908e9769c66a656dd6d1c83a7d766 (patch)
treebca050c2bf7f65c53dbf134d92e20aef65c8720a /src/game/SpellAuras.cpp
parent183e4c4bf9d8bc4dc57dcb61359ac07cc433971d (diff)
*Fix improved devouring plague.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index f697f618b9e..1e42a41210f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1006,6 +1006,23 @@ void Aura::HandleAuraSpecificMods(bool apply)
}
}
}
+ else if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_PRIEST)
+ {
+ // Devouring Plague
+ if (GetSpellProto()->SpellFamilyFlags[0] & 0x02000000 && GetPartAura(0))
+ {
+ Unit * caster = GetCaster();
+ if (!caster)
+ return;
+
+ // Improved Devouring Plague
+ if (AuraEffect const * aurEff = caster->GetDummyAura(SPELLFAMILY_PRIEST, 3790, 1))
+ {
+ int32 basepoints0 = aurEff->GetAmount() * GetPartAura(0)->GetTotalTicks() * GetPartAura(0)->GetAmount() / 100;
+ caster->CastCustomSpell(m_target, 63675, &basepoints0, NULL, NULL, true, NULL, GetPartAura(0));
+ }
+ }
+ }
else if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_ROGUE)
{
// Sprint (skip non player casted spells by category)