diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 5981731..11d1112 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -177,6 +177,9 @@ public class StartDarkSoulsGame { + "Guard fought back with sowrd of ashina " + "\n(you recieve 3 damage) "); playerHP = playerHP -3; + if (playerHP == 0) { + lose(); + } hpLabelNumber.setText(""+ playerHP); choice1.setText(">"); choice2.setText("");