Commit 8660df8fbdad4b05e90e43b002600a61bc663748

Authored by DarkGod
1 parent 7d9c38ea

fix air stuff from ressourcification

... ... @@ -747,7 +747,7 @@ function _M:displayResources(scale, bx, by, a)
747 747
748 748 local air_level, air_condition = game.level.map:checkEntity(player.x, player.y, Map.TERRAIN, "air_level"), game.level.map:checkEntity(player.x, player.y, Map.TERRAIN, "air_condition")
749 749
750   - if not (not air_condition or not self.can_breath[air_condition] or self.can_breath[air_condition] <= 0) or self:attr("no_breath") or self:attr("invulnerable") then
  750 + if not (not air_condition or not player.can_breath or not player.can_breath[air_condition] or player.can_breath[air_condition] <= 0) or player:attr("no_breath") or player:attr("invulnerable") then
751 751 tile_degen = air_level or 0
752 752 end
753 753
... ...