From 031f2b00f18d80496ef1cf6cd62752df0019a912 Mon Sep 17 00:00:00 2001 From: patman128 Date: Tue, 7 Dec 2010 05:45:52 +0300 Subject: [PATCH] [10832] Spawn pool at aura 63471 dispel in water. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 12 +++++++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c2e9dca50..b23871c1d 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4619,9 +4619,19 @@ void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/) target->CastSpell(target, 32612, true, NULL, this); return; - case 42783: //Wrath of the Astrom... + case 42783: // Wrath of the Astrom... if (m_removeMode == AURA_REMOVE_BY_EXPIRE && GetEffIndex() + 1 < MAX_EFFECT_INDEX) target->CastSpell(target, GetSpellProto()->CalculateSimpleValue(SpellEffectIndex(GetEffIndex()+1)), true); + + return; + case 46221: // Animal Blood + if (target->GetTypeId() == TYPEID_PLAYER && m_removeMode == AURA_REMOVE_BY_DEFAULT && target->IsInWater()) + { + float position_z = target->GetTerrain()->GetWaterLevel(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ()); + // Spawn Blood Pool + target->CastSpell(target->GetPositionX(), target->GetPositionY(), position_z, 63471, true); + } + return; case 51912: // Ultra-Advanced Proto-Typical Shortening Blaster if (m_removeMode == AURA_REMOVE_BY_EXPIRE) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5ba612f7a..f88f14bb5 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 "10831" + #define REVISION_NR "10832" #endif // __REVISION_NR_H__