mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Fix spell dst execution time
This commit is contained in:
@@ -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