mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 22:56:39 +01:00
Target selection for fishing spells.
--HG-- branch : trunk
This commit is contained in:
@@ -1598,7 +1598,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
|
||||
break;
|
||||
case TARGET_UNIT_CASTER_FISHING:
|
||||
{
|
||||
AddUnitTarget(m_caster, i);
|
||||
//AddUnitTarget(m_caster, i);
|
||||
float min_dis = GetSpellMinRange(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;
|
||||
|
||||
Reference in New Issue
Block a user