diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index da4a806b..0038aac1 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -444,7 +444,9 @@ public enum CombatManager { return; } //calculate resisted damage including fortitude - + if(attacker.getObjectType().equals(mbEnums.GameObjectType.Mob)) + if(((Mob)attacker).isPet()) + damage *= attacker.level * 0.1f; damage = (int) resists.getResistedDamage(attacker, (AbstractCharacter) target, damageType, damage, 0); } } @@ -613,6 +615,9 @@ public enum CombatManager { public static void setAutoAttackJob(AbstractCharacter attacker, mbEnums.EquipSlotType slot, long delay) { //calculate next allowed attack and update the timestamp + if(attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter) == false) + return; //mobs dont submit auto attack jobs + if(attacker.getTimestamps().containsKey("Attack" + slot.name()) && attacker.getTimestamps().get("Attack" + slot.name()) > System.currentTimeMillis()) return;