Fix spell dst execution time
This commit is contained in:
1 parent
288a13861d
commit
557f714a10
1 file changed
+1
-1
@@ -833,7 +833,7 @@ void Spell::SelectSpellTargets()
|
||||
}
|
||||
else if (m_spellInfo->Speed > 0.0f)
|
||||
{
|
||||
float dist = m_caster->GetDistance(*m_targets.GetDstPos());
|
||||
float dist = m_caster->GetExactDist(*m_targets.GetDstPos());
|
||||
if (!m_spellInfo->HasAttribute(SPELL_ATTR9_SPECIAL_DELAY_CALCULATION))
|
||||
m_delayMoment = uint64(std::floor(dist / m_spellInfo->Speed * 1000.0f));
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user