Target selection for fishing spells.

--HG--
branch : trunk
This commit is contained in:
krz
2009-05-22 19:51:48 +02:00
parent fcbcf59511
commit 8ca8b691b8
+1 -1
View File
@@ -1598,7 +1598,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
break; break;
case TARGET_UNIT_CASTER_FISHING: case TARGET_UNIT_CASTER_FISHING:
{ {
AddUnitTarget(m_caster, i); //AddUnitTarget(m_caster, i);
float min_dis = GetSpellMinRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)); float min_dis = GetSpellMinRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex));
float max_dis = GetSpellMaxRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)); float max_dis = GetSpellMaxRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex));
float dis = m_caster->GetMap()->rand_norm() * (max_dis - min_dis) + min_dis; float dis = m_caster->GetMap()->rand_norm() * (max_dis - min_dis) + min_dis;