Core/Spells: Implemented target 62 TARGET_DEST_CASTER_GROUND (the same as target 125)

Port From (https://github.com/TrinityCore/TrinityCore/commit/88cf53e54a4cda8fa8f1e3ef8b0766b5e6ac8c27)
This commit is contained in:
hondacrx
2022-02-17 09:32:03 -05:00
parent c81497bb36
commit 11e97aa548
4 changed files with 13 additions and 6 deletions
+7 -1
View File
@@ -3489,7 +3489,13 @@ namespace Game.Entities
return Math.Max(m_staticFloorZ, GetMap().GetGameObjectFloor(GetPhaseShift(), GetPositionX(), GetPositionY(), GetPositionZ() + GetCollisionHeight()));
}
float GetMapWaterOrGroundLevel(float x, float y, float z, ref float ground)
public float GetMapWaterOrGroundLevel(float x, float y, float z)
{
float groundLevel = 0;
return GetMapWaterOrGroundLevel(x, y, z, ref groundLevel);
}
public float GetMapWaterOrGroundLevel(float x, float y, float z, ref float ground)
{
return GetMap().GetWaterOrGroundLevel(GetPhaseShift(), x, y, z, ref ground, IsTypeMask(TypeMask.Unit) ? !ToUnit().HasAuraType(AuraType.WaterWalk) : false, GetCollisionHeight());
}