combat manage null check
This commit is contained in:
1 parent
007299eae5
commit
ba81a24622
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user