[10539] Use more near for final point coordinates for Z calcualtion.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
BugFix 2010-09-26 16:38:11 +04:00 committed by VladimirMangos
parent 19844a6ba1
commit 75611b78fa
2 changed files with 2 additions and 2 deletions

View file

@ -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);