Partial: Core/Entities: Reduce the probability of units dropping under the map
Port From (https://github.com/TrinityCore/TrinityCore/commit/69edf282fa777912385dbb4d921b9f3a8f92a00e)
This commit is contained in:
+1006
-979
File diff suppressed because it is too large
Load Diff
@@ -3722,7 +3722,6 @@ namespace Game.Spells
|
||||
return;
|
||||
|
||||
Position pos = destTarget.GetPosition();
|
||||
pos = unitTarget.GetFirstCollisionPosition(unitTarget.GetDistance(pos.posX, pos.posY, pos.posZ + 2.0f), 0.0f);
|
||||
unitTarget.NearTeleportTo(pos.posX, pos.posY, pos.posZ, pos.Orientation, unitTarget == m_caster);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user