28 {
29 if (player.IsPlacingLocal())
30 {
31 return false;
32 }
33
34
35 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
36 {
37 return false;
38 }
39
40 Fireplace fireplaceTarget = Fireplace.Cast(target.GetObject());
41 if (fireplaceTarget)
42 {
43 if (fireplaceTarget.HasAshes() && !fireplaceTarget.IsBurning() && fireplaceTarget.IsEmpty())
44 {
45 int liquidType;
46 string surfaceType;
48 if (
GetGame().IsSurfaceDigable(surfaceType))
49 {
50 return true;
51 }
52 }
53 }
54
55 return false;
56 }
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native CGame GetGame()