From a71dfd84a77e01d3f6a906eb98ffafdb7109a8cc Mon Sep 17 00:00:00 2001 From: Xfurry Date: Wed, 13 Jun 2012 15:35:02 +0200 Subject: [PATCH] [12005] Implement spell 48590 --- src/game/SpellEffects.cpp | 14 ++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index cd174c451..e3756675c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -7120,6 +7120,20 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) m_caster->CastSpell(m_caster, 50239, true); return; } + case 48590: // Avenging Spirits + { + if (!unitTarget) + return; + + // Summon 4 spirits at near point positions + float x, y, z; + for (uint8 i = 0; i < 4; ++i) + { + unitTarget->GetNearPoint(unitTarget, x, y, z, 0, 3.0f, M_PI_F/2*i+M_PI_F/4); + unitTarget->CastSpell(x, y, z, 48592, true); + } + return; + } case 48603: // High Executor's Branding Iron // Torture the Torturer: High Executor's Branding Iron Impact unitTarget->CastSpell(unitTarget, 48614, true); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ed9056a6f..14c52875c 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 "12004" + #define REVISION_NR "12005" #endif // __REVISION_NR_H__