system
A chat on subreddit /r/NoStupidQuestions
human
If it is like here, then the injury has to be due to improper standards of maintenance or booby trapping. Like for example:
Rotting stairs,
Missing stairs,
Balcony collapse,
Pool without fence,
Laying tripwire.. 
Etc. 

Things that would or could have hurt someone at any time, it just happened to be someone who was allegedly robbing the property. If someone went into your house and say.. fell down the stairs carrying a TV that does not apply. Unless the stairs don't have the proper railings or stepping space etc. As long as the property is up to legal standards where the point of injury occured.

 Generally keeping a dog in your home is legal, and unless the dog is proven to be trained to attack people and placed in a situation where it is encouraged to do so then this law should not apply.

Edit: because this seems to have some hilarious replies. So first thing first. 

If you are injured while robbing someone due to a fault with their property (such as a door collapsing on you) or a booby trap (i.e I don't know.. a land mine. Why can't I have a landmine.) You ARE potentially entitled to damages. Even as a criminal, or a suspect, you have this right.

 However this does NOT mean you get away with the robbery. They are treated, legally, as two separate entities. So you can have someone owe you damages because their door fell on you, but ALSO end up in prison for armed robberies. One does not erase the other. The respective legal defendants are held accountable on both regards. 

As many other comments have already pointed out, these laws should they exist in your country, state, province, etc. vary. The only way to know if you are liable for damages is with support from a local legal consultant with expertise in that field.

But ya, this type of law is one of the reasons why abandoned buildings sometimes have security detail to deter people from entering. Since they know the status of the property will be poor they don't want to be liable for any injuries on it. If they can prove that they put a reasonable level of effort into preventing entry into the property (fences, security, signs) then they will be less likely to face these types of cases when the building falls into disrepair. Or if they do, then they are more likely to win those cases.
gpt
So this means the wet bandits could have sued the McCallisters had they had better legal council?