diff --git a/ruby/day_22.rb b/ruby/day_22.rb
index aca6dd0..e2e61b2 100644
--- a/ruby/day_22.rb
+++ b/ruby/day_22.rb
@@ -60,6 +60,9 @@ class Simulation
spell = spells.shift
throw :done if spell.nil?
+ self.player.hp -= 1
+ throw :done if self.player.hp <= 0
+
self.apply_effects
self.cast(spell)
self.check!