forked from MagicBane/Server
attack delay catching
This commit is contained in:
@@ -126,13 +126,6 @@ public enum CombatManager {
|
||||
return;
|
||||
}
|
||||
|
||||
if (attacker.getTimers().containsKey("Attack" + slot)) {
|
||||
AttackJob ajR = ((AttackJob)attacker.getTimers().get("Attack" + slot).getJob());
|
||||
if(ajR.target.equals(target)){
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
target.combatLock.writeLock().lock();
|
||||
|
||||
// check if character is in range to attack target
|
||||
@@ -229,7 +222,7 @@ public enum CombatManager {
|
||||
|
||||
if (attacker.getObjectType().equals(mbEnums.GameObjectType.Mob))
|
||||
((Mob) attacker).nextAttackTime = System.currentTimeMillis() + delay;
|
||||
|
||||
delay += addedDelay;
|
||||
if (inRange) {
|
||||
|
||||
//handle retaliate
|
||||
|
||||
Reference in New Issue
Block a user