Browse Source

combat manage null check

combat-3
FatBoy-DOTC 7 months ago
parent
commit
ba81a24622
  1. 3
      src/engine/gameManager/CombatManager.java

3
src/engine/gameManager/CombatManager.java

@ -119,6 +119,9 @@ public enum CombatManager { @@ -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;

Loading…
Cancel
Save