*Fix spell 16007.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-11 11:35:31 -05:00
1 parent 1c97b2bf79
commit e82ae5f8df
2 files changed
+6 -2

No files matched your search

+1 -2
View File
@@ -2021,8 +2021,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
float range = GetSpellMaxRange(m_spellInfo, IsPositiveSpell(m_spellInfo->Id));
if(modOwner) modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RANGE, range, this);
WorldObject *target = SearchNearbyTarget(range, SPELL_TARGETS_ENTRY);
if(target)
if(WorldObject *target = SearchNearbyTarget(range, SPELL_TARGETS_ENTRY))
m_targets.setDestination(target);
break;
}