From 4bdc02509a5fc176e33cca581688c0a8cfcffca0 Mon Sep 17 00:00:00 2001 From: Xfurry Date: Sat, 30 Apr 2011 10:54:24 +0200 Subject: [PATCH] [11407] Add dummy effect of spell 17950 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 11 +++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 55464b0bd..39070a76e 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -941,6 +941,17 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) m_caster->CastSpell(m_caster, spell_id, true, NULL); return; } + case 17950: // Shadow Portal + { + if (!unitTarget) + return; + + // Shadow Portal + const uint32 spell_list[6] = {17863, 17939, 17943, 17944, 17946, 17948}; + + m_caster->CastSpell(unitTarget, spell_list[urand(0, 5)], true); + return; + } case 19411: // Lava Bomb case 20474: // Lava Bomb { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index dbca0425a..b9cf625ab 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 "11406" + #define REVISION_NR "11407" #endif // __REVISION_NR_H__