diff options
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 88b8b0e722e..aa0d24ffdb8 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1911,7 +1911,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) default: angle = rand_norm()*2*M_PI; break; } - m_caster->GetClosePoint(x, y, z, dist, angle); + m_caster->GetGroundPointAroundUnit(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; @@ -1957,7 +1957,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) default: angle = rand_norm()*2*M_PI; break; } - target->GetClosePoint(x, y, z, dist, angle); + target->GetGroundPointAroundUnit(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; @@ -1994,7 +1994,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) x = m_targets.m_destX; y = m_targets.m_destY; z = m_targets.m_destZ; - m_caster->GetClosePointAt(x, y, z, dist, angle); + m_caster->GetGroundPoint(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; |