mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
fixed Quartzwood Crasher damage counting
This commit is contained in:
parent
bfa674ed59
commit
f7309919b9
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ class QuartzwoodCrasherWatcher extends Watcher {
|
|||
return;
|
||||
}
|
||||
damageMap
|
||||
.computeIfAbsent(event.getTargetId(), x -> new HashMap())
|
||||
.compute(creature.getControllerId(), (uuid, i) -> i == null ? event.getAmount() : event.getAmount() + 1);
|
||||
.computeIfAbsent(event.getTargetId(), x -> new HashMap<>())
|
||||
.compute(creature.getControllerId(), (uuid, i) -> i == null ? event.getAmount() : event.getAmount() + i);
|
||||
}
|
||||
|
||||
public int getDamage(UUID damagedPlayerId, UUID controllerId) {
|
||||
|
|
Loading…
Reference in a new issue