[10920] Prevent server freeze at strnage radisu used by item 34124 spell cast

This commit is contained in:
VladimirMangos 2010-12-24 20:46:17 +03:00
parent 14c1329ea5
commit 1b4477164c
2 changed files with 4 additions and 1 deletions

View file

@ -2424,6 +2424,9 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
{
if (!(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION))
{
if (m_spellInfo->Id == 50019) // Hawk Hunting, problematic 50K radius
radius = 10.0f;
float angle = m_caster->GetOrientation();
switch(targetMode)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10919"
#define REVISION_NR "10920"
#endif // __REVISION_NR_H__