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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user