From ba81a24622fd4254d8cec3a2b7894536ef4be8a9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 1 Jun 2024 12:33:05 -0500 Subject: [PATCH] combat manage null check --- src/engine/gameManager/CombatManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 91410abd..d709dbce 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -119,6 +119,9 @@ public enum CombatManager { public static void processAttack(AbstractCharacter attacker, AbstractWorldObject target, mbEnums.EquipSlotType slot) { + if(slot == null || target == null || attacker == null) + return; + if (attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) { if (!attacker.isCombat()) return;