From 997bc9a41406135938fe348cdb22ce1184fc8a7e Mon Sep 17 00:00:00 2001 From: ben_singer Date: Wed, 11 Sep 2024 16:31:57 +0100 Subject: [PATCH] Bug fixed that caused fatal reactions to custom commands to not result in player death --- .../main/kotlin/com/github/benpollarduk/ktaf/logic/Game.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ktaf/src/main/kotlin/com/github/benpollarduk/ktaf/logic/Game.kt b/ktaf/src/main/kotlin/com/github/benpollarduk/ktaf/logic/Game.kt index ca37f2d..c2d77be 100644 --- a/ktaf/src/main/kotlin/com/github/benpollarduk/ktaf/logic/Game.kt +++ b/ktaf/src/main/kotlin/com/github/benpollarduk/ktaf/logic/Game.kt @@ -311,6 +311,10 @@ public class Game( } } + if (reaction.result == ReactionResult.FATAL) { + player.kill() + } + if (displayReactionToInput) { handleReaction(reaction) }