From 41ef4cf4db722f655c19929ebe1b3fd82d55275e Mon Sep 17 00:00:00 2001 From: dart Date: Sun, 3 Apr 2022 13:00:38 +0300 Subject: [PATCH] fix mob death condition --- ldjam50/Assets/Scripts/Mob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldjam50/Assets/Scripts/Mob.cs b/ldjam50/Assets/Scripts/Mob.cs index 38a97f6..1a61b44 100644 --- a/ldjam50/Assets/Scripts/Mob.cs +++ b/ldjam50/Assets/Scripts/Mob.cs @@ -34,7 +34,7 @@ public void ApplyDamage(float damage) // Update is called once per frame void Update() { - if (health < 0) + if (health <= 0) { overMind.DeathGoToPull(gameObject); }