From 8140ff20d94bd0ad519a44c77ab1edad1e355a66 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Wed, 17 Nov 2010 13:00:19 +0100 Subject: [PATCH] [10729] Add dummy aura effect of spell 47178 and dummy effect of 47176 Note: see comments in code for spell 47176 Signed-off-by: NoFantasy --- src/game/SpellAuras.cpp | 3 +++ src/game/SpellEffects.cpp | 11 +++++++++++ src/shared/revision_nr.h | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 95b929f3a..c0468691a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2464,6 +2464,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real) } return; } + case 47178: // Plague Effect Self + target->SetFeared(apply, GetCasterGUID(), GetId()); + return; case 58204: // LK Intro VO (1) if (target->GetTypeId() == TYPEID_PLAYER) { diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index ce07990a7..c7d9c24d7 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1404,6 +1404,17 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) unitTarget->CastSpell(unitTarget,46798,true,m_CastItem,NULL,m_originalCasterGUID); break; } + case 47176: // Infect Ice Troll + { + // Spell has wrong areaGroupid, so it can not be casted where expected. + // TODO: research if spells casted by NPC, having TARGET_SCRIPT, can have disabled area check + if (!unitTarget) + return; + + // Plague Effect Self + unitTarget->CastSpell(unitTarget, 47178, true); + return; + } case 49357: // Brewfest Mount Transformation { if (m_caster->GetTypeId() != TYPEID_PLAYER) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 46447c29b..f73025d5f 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 "10728" + #define REVISION_NR "10729" #endif // __REVISION_NR_H__