From 579501505934c1b8032943792a2c1054b599f1d2 Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Sat, 12 Mar 2022 09:35:06 -0500 Subject: [PATCH] Press damage fix --- src/npc/ai/misc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/npc/ai/misc.rs b/src/npc/ai/misc.rs index c61f4f0..48aa135 100644 --- a/src/npc/ai/misc.rs +++ b/src/npc/ai/misc.rs @@ -982,6 +982,7 @@ impl NPC { if player.y > self.y { self.npc_flags.set_solid_hard(false); self.damage = 127; + break; } else { self.npc_flags.set_solid_hard(true); self.damage = 0; @@ -1847,6 +1848,7 @@ impl NPC { if player.y > self.y { self.npc_flags.set_solid_hard(false); self.damage = 127; + break; } else { self.npc_flags.set_solid_hard(true); self.damage = 0;