|
|
@ -125,7 +125,7 @@ public class MobAI { |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
|
|
|
|
|
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
int delay = 3000; |
|
|
|
int delay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
delay = 11000; |
|
|
|
delay = 11000; |
|
|
@ -134,13 +134,13 @@ public class MobAI { |
|
|
|
int delay = 3000; |
|
|
|
int delay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
delay = 11000; |
|
|
|
delay = 11000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + delay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + delay); |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
int attackDelay = 3000; |
|
|
|
int attackDelay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
attackDelay = 11000; |
|
|
|
attackDelay = 11000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -179,7 +179,7 @@ public class MobAI { |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
|
|
|
|
|
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
int delay = 3000; |
|
|
|
int delay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
delay = 15000; |
|
|
|
delay = 15000; |
|
|
@ -188,13 +188,13 @@ public class MobAI { |
|
|
|
int attackDelay = 3000; |
|
|
|
int attackDelay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
attackDelay = 15000; |
|
|
|
attackDelay = 15000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
int attackDelay = 3000; |
|
|
|
int attackDelay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
attackDelay = 15000; |
|
|
|
attackDelay = 15000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -222,7 +222,7 @@ public class MobAI { |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
ItemBase offHand = mob.getWeaponItemBase(false); |
|
|
|
|
|
|
|
|
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
if (mainHand == null && offHand == null) { |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
int delay = 3000; |
|
|
|
int delay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
delay = 11000; |
|
|
|
delay = 11000; |
|
|
@ -231,13 +231,13 @@ public class MobAI { |
|
|
|
int attackDelay = 3000; |
|
|
|
int attackDelay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
attackDelay = 11000; |
|
|
|
attackDelay = 11000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
} else if (mob.getWeaponItemBase(false) != null) { |
|
|
|
int attackDelay = 3000; |
|
|
|
int attackDelay = 3000; |
|
|
|
if (mob.isSiege()) |
|
|
|
if (mob.isSiege()) |
|
|
|
attackDelay = 11000; |
|
|
|
attackDelay = 11000; |
|
|
|
FinalCombatManager.combatCycle(mob, target); |
|
|
|
CombatManager.combatCycle(mob, target); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
mob.setLastAttackTime(System.currentTimeMillis() + attackDelay); |
|
|
|
if (target.getCombatTarget() == null) { |
|
|
|
if (target.getCombatTarget() == null) { |
|
|
|
target.setCombatTarget(mob); |
|
|
|
target.setCombatTarget(mob); |
|
|
|