From c1ab3c4be44b531af6cdf8fe3fb4a0c82ad5af85 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Fri, 29 Apr 2011 09:44:22 +0200 Subject: [PATCH] [11406] Add dummy aura effect (removal) of spell 42454 Signed-off-by: NoFantasy --- src/game/SpellAuras.cpp | 19 +++++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index b223ae82e..ea6307879 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2349,6 +2349,25 @@ void Aura::HandleAuraDummy(bool apply, bool Real) target->RemoveAurasDueToSpell(41105); return; } + case 42454: // Captured Totem + { + if (m_removeMode == AURA_REMOVE_BY_DEFAULT) + { + if (target->getDeathState() != CORPSE) + return; + + Unit* pCaster = GetCaster(); + + if (!pCaster) + return; + + // Captured Totem Test Credit + if (Player* pPlayer = pCaster->GetCharmerOrOwnerPlayerOrPlayerItself()) + pPlayer->CastSpell(pPlayer, 42455, true); + } + + return; + } case 42517: // Beam to Zelfrax { // expecting target to be a dummy creature diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 6ecbf3a43..dbca0425a 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 "11405" + #define REVISION_NR "11406" #endif // __REVISION_NR_H__