From 2dc90a64b1535469da7fabd935ac6b7da1d71fee Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Sun, 28 Apr 2019 23:55:14 +0100 Subject: [PATCH] fighting game sample fix --- scripts/fighting_game.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fighting_game.lua b/scripts/fighting_game.lua index 22f156c5a..6e550e416 100644 --- a/scripts/fighting_game.lua +++ b/scripts/fighting_game.lua @@ -123,7 +123,7 @@ local function Character(face, shirt_color) return self.hitconfirm end, require_hitconfirm_guard = function(self) -- true if this player hit the opponent but the opponent guarded it - return self.hitconfirm + return self.hitconfirm and self.hit_guard end, require_hurt = function(self) -- true if this player was hit by the other return self.hurt