fix mob health at end
@@ -245,14 +245,20 @@ class Mobs(commands.Cog): # fuck I really don't want to work on this
embed.add_field( # user health bar
name=f'**{u.display_name}**',
- value=make_health_bar((u_health if u_health >= 0 else 0), 20, self.d.emojis.heart_full, self.d.emojis.heart_half, self.d.emojis.heart_empty),
+ value=make_health_bar(
+ (u_health if u_health >= 0 else 0),
+ 20,
+ self.d.emojis.heart_full,
+ self.d.emojis.heart_half,
+ self.d.emojis.heart_empty
+ ),
inline=False
)
embed.add_field( # mob health bar
name=f'**{mob.nice}**',
value=make_health_bar(
- mob.health,
+ (mob.health if mob.health >= 0 else 0),
mob_max_health,
self.d.emojis.heart_full,
self.d.emojis.heart_half,
