From e46cea7f7cbd72fd1b33cc44e10f33bd7d776b54 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Fri, 7 May 2010 16:27:37 +0200 Subject: [PATCH] [9847] Add dummy effect of spell 50546, 50547 and 50548 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 16 ++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index e14845d14..12a11cfa6 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1433,6 +1433,22 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) return; } + case 50546: // Ley Line Focus Control Ring Effect + case 50547: // Ley Line Focus Control Amulet Effect + case 50548: // Ley Line Focus Control Talisman Effect + { + if (!m_originalCaster || !unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + switch(m_spellInfo->Id) + { + case 50546: unitTarget->CastSpell(m_originalCaster, 47390, true); break; + case 50547: unitTarget->CastSpell(m_originalCaster, 47472, true); break; + case 50548: unitTarget->CastSpell(m_originalCaster, 47635, true); break; + } + + return; + } case 51276: // Incinerate Corpse { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5ba19809c..58cb10425 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 "9846" + #define REVISION_NR "9847" #endif // __REVISION_NR_H__