Core/Spells: Fixed crash in delayed DEST spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/fa0dc88c23a9d9dc95dd9e444e8f240d91ca241a)
This commit is contained in:
@@ -302,6 +302,8 @@ namespace Game.Spells
|
|||||||
float dist = m_caster.GetExactDist(m_targets.GetDstPos());
|
float dist = m_caster.GetExactDist(m_targets.GetDstPos());
|
||||||
return (ulong)(Math.Floor((dist / m_spellInfo.Speed + launchDelay) * 1000.0f));
|
return (ulong)(Math.Floor((dist / m_spellInfo.Speed + launchDelay) * 1000.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return (ulong)Math.Floor(launchDelay * 1000.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -2913,6 +2915,9 @@ namespace Game.Spells
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (single_missile && t_offset == 0)
|
||||||
|
return m_delayMoment;
|
||||||
|
|
||||||
if (m_caster.IsTypeId(TypeId.Player))
|
if (m_caster.IsTypeId(TypeId.Player))
|
||||||
m_caster.ToPlayer().SetSpellModTakingSpell(this, true);
|
m_caster.ToPlayer().SetSpellModTakingSpell(this, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user