From ce26fcf4aa50bbc546f6bebb7689d4bbf5611e3e Mon Sep 17 00:00:00 2001 From: Astellar Date: Thu, 24 Dec 2009 03:23:41 +0300 Subject: [PATCH] [9054] Implement expire/dispell damage for spell 44457 and ranks. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 10 ++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index dbf976718..057c4a84f 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2408,6 +2408,16 @@ void Aura::HandleAuraDummy(bool apply, bool Real) } } + // Living Bomb + if (m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE && (m_spellProto->SpellFamilyFlags & UI64LIT(0x2000000000000))) + { + // Zero duration is equal to AURA_REMOVE_BY_DEFAULT. We can't use it directly, as it is set even + // when removing aura from one target due to casting Living Bomb at other. + if (m_duration == 0 || m_removeMode == AURA_REMOVE_BY_DISPEL) + m_target->CastSpell(m_target,m_modifier.m_amount,true,NULL,this); + return; + } + if (m_removeMode == AURA_REMOVE_BY_DEATH) { // Stop caster Arcane Missle chanelling on death diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 32bd9e263..fae8a050e 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9053" + #define REVISION_NR "9054" #endif // __REVISION_NR_H__