mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: Fix a float division issue in EffectLeapBack
Ref Coverity CID 1227511
This commit is contained in:
@@ -4553,8 +4553,8 @@ void Spell::EffectLeapBack(SpellEffIndex /*effIndex*/)
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
float speedxy = float(effectInfo->MiscValue) / 10;
|
||||
float speedz = float(damage / 10);
|
||||
float speedxy = effectInfo->MiscValue / 10.f;
|
||||
float speedz = damage / 10.f;
|
||||
//1891: Disengage
|
||||
m_caster->JumpTo(speedxy, speedz, m_spellInfo->SpellIconID != 1891);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user