|
|
|
@ -1787,7 +1787,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
@@ -1787,7 +1787,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
|
|
|
|
final boolean fromCost) { |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
this.combatLock.writeLock().lock(); |
|
|
|
|
try { |
|
|
|
|
boolean ready = this.healthLock.writeLock().tryLock(1, TimeUnit.SECONDS); |
|
|
|
|
|
|
|
|
@ -1852,6 +1852,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
@@ -1852,6 +1852,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
|
|
|
|
return newHealth - oldHealth; |
|
|
|
|
} finally { |
|
|
|
|
this.healthLock.writeLock().unlock(); |
|
|
|
|
this.combatLock.writeLock().unlock(); |
|
|
|
|
} |
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
|