mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10539] Use more near for final point coordinates for Z calcualtion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
19844a6ba1
commit
75611b78fa
2 changed files with 2 additions and 2 deletions
|
|
@ -1563,7 +1563,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
float angle = 2.0f * M_PI_F * rand_norm_f();
|
||||
float dest_x = m_targets.m_destX + cos(angle) * radius;
|
||||
float dest_y = m_targets.m_destY + sin(angle) * radius;
|
||||
float dest_z = m_caster->GetPositionZ();
|
||||
float dest_z = m_targets.m_destZ;
|
||||
m_caster->UpdateGroundPositionZ(dest_x, dest_y, dest_z);
|
||||
m_targets.setDestination(dest_x, dest_y, dest_z);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue