[12033] Implement spell radius for 56438, target limitation for 56140

This commit is contained in:
Reamer 2012-07-02 13:55:46 +02:00 committed by Schmoozerd
parent 84527cfcc3
commit c46fade9f0
2 changed files with 6 additions and 1 deletions

View file

@ -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;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12032"
#define REVISION_NR "12033"
#endif // __REVISION_NR_H__