TrinityCore/TrinityCore — comment on commit 7e94cae8677a2d6ace04a40ca0e06488e7329077
File:  line 0
By Pesthuf:

The problem might be pos.m_positionZ + unitTarget->GetObjectSize(). I mean, why adjust the z pos after all? GetFirstCollisionPosition should already return a valid Z position thats on the ground.