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;