From 3775af502798cf1e9a81afa26c7d3dbadb468ae8 Mon Sep 17 00:00:00 2001 From: freshc0w <121275444+freshc0w@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:13:04 +1000 Subject: [PATCH] Fix unkilable deflect wizard bug --- .../com/csse3200/game/components/npc/DeflectingComponent.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java b/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java index ab5aa645e..15fe60fcd 100644 --- a/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java +++ b/source/core/src/main/com/csse3200/game/components/npc/DeflectingComponent.java @@ -60,7 +60,7 @@ public void create() { @Override public void update() { - resetHealth(); + super.update(); } /** @@ -77,8 +77,6 @@ private void deflectProj(Fixture me, Fixture other) { if (deflectLimitAmount-- <= 0) { // Reached deflect limit amt, return. entity.getComponent(this.getClass()).setEnabled(false); - // reset health - resetHealth(); return; }