From 2c6d48b912cdfd99f56723e89155181ccd756a5c Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Fri, 7 May 2010 16:51:19 +0200 Subject: [PATCH] [9848] Add script effect of spell 47393, 47615 and 47638 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 30 ++++++++++++++++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 12a11cfa6..5de99261b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5691,6 +5691,36 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) break; } + case 47393: // The Focus on the Beach: Quest Completion Script + { + if (!unitTarget) + return; + + if (unitTarget->HasAura(47391, EFFECT_INDEX_0)) + unitTarget->RemoveAurasDueToSpell(47391); + + return; + } + case 47615: // Atop the Woodlands: Quest Completion Script + { + if (!unitTarget) + return; + + if (unitTarget->HasAura(47473, EFFECT_INDEX_0)) + unitTarget->RemoveAurasDueToSpell(47473); + + return; + } + case 47638: // The End of the Line: Quest Completion Script + { + if (!unitTarget) + return; + + if (unitTarget->HasAura(47636, EFFECT_INDEX_0)) + unitTarget->RemoveAurasDueToSpell(47636); + + 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 58cb10425..1da34a4f6 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 "9847" + #define REVISION_NR "9848" #endif // __REVISION_NR_H__