From 237622414948c51c8e1089b7d6cf704c6f80faf7 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Tue, 23 Feb 2010 18:36:36 +0100 Subject: [PATCH] [9441] Add dummy effect of spell 50133/43882 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 25 +++++++++++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 38ff5ccee2b..ffef7e9711b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1155,6 +1155,15 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) return; } */ + case 43882: // Scourging Crystal Controller Dummy + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + // see spell dummy 50133 + unitTarget->RemoveAurasDueToSpell(43874); + return; + } case 44875: // Complete Raptor Capture { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) @@ -1307,6 +1316,22 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) } return; } + case 50133: // Scourging Crystal Controller + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + if (unitTarget->HasAura(43874)) + { + // someone else is already channeling target + if (unitTarget->HasAura(43878)) + return; + + m_caster->CastSpell(unitTarget, 43878, true, m_CastItem); + } + + return; + } case 50243: // Teach Language { if (m_caster->GetTypeId() != TYPEID_PLAYER) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a2026348788..038f8ed8e5e 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 "9440" + #define REVISION_NR "9441" #endif // __REVISION_NR_H__