fixed Quartzwood Crasher damage counting

This commit is contained in:
Evan Kranzler 2020-04-23 19:32:44 -04:00
parent bfa674ed59
commit f7309919b9

View file

@ -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) {