From c46fade9f08933221b5278e2b67c476b09e18322 Mon Sep 17 00:00:00 2001 From: Reamer Date: Mon, 2 Jul 2012 13:55:46 +0200 Subject: [PATCH] [12033] Implement spell radius for 56438, target limitation for 56140 --- src/game/Spell.cpp | 5 +++++ src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index f60eeec3c..d54514a91 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1604,6 +1604,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList& case 50988: // Glare of the Tribunal (Halls of Stone) case 54148: // Ritual of the Sword (Utgarde Pinnacle, Svala) case 55479: // Forced Obedience (Naxxramas, Razovius) + case 56140: // Summon Power Spark (Eye of Eternity, Malygos) case 59870: // Glare of the Tribunal (h) (Halls of Stone) case 62016: // Charge Orb (Ulduar, Thorim) case 62301: // Cosmic Smash (Ulduar, Algalon) @@ -1782,6 +1783,10 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList& if (SpellAuraHolder* auraHolder = m_caster->GetSpellAuraHolder(66882)) radius = 0.5f * (60000 - auraHolder->GetAuraDuration()) * 0.001f; break; + case 56438: // Arcane Overload + if (Unit* realCaster = GetAffectiveCaster()) + radius = radius * realCaster->GetObjectScale(); + break; default: break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 93b7983db..6b07d5ed7 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 "12032" + #define REVISION_NR "12033" #endif // __REVISION_NR_H__