Skip to content

Commit c5603da

Browse files
committed
fix for toggleable heals in health layer
1 parent 9fda620 commit c5603da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/versions/14_8_0/layers/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def draw(self, game_time: int, image: Image.Image):
132132
subtype = ability["id_to_subtype"][8]
133133
index = ability["id_to_index"][8]
134134
name = f"{index}.{subtype}"
135-
wt = ability[name]["workTime"]
135+
wt = ability[name].get("workTime", 0)
136136
rhs = ability[name]["regenerationHPSpeed"]
137137
maxHeal = floor(wt) * rhs * self._player.max_health
138138
canHeal = (

0 commit comments

Comments
 (0)