1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 01:08:59 -09:00

fixed an error

This commit is contained in:
Evan Kranzler 2020-04-15 08:48:28 -04:00
parent 1874a8404a
commit f09a6d847e

View file

@ -152,7 +152,7 @@ class QuartzwoodCrasherWatcher extends Watcher {
}
damageMap
.computeIfAbsent(event.getTargetId(), x -> new HashMap())
.compute(creature.getControllerId(), (uuid, i) -> i == null ? event.getAmount() : i + event.getAmount());
.compute(creature.getControllerId(), (uuid, i) -> i == null ? event.getAmount() : event.getAmount() + 1);
}
public int getDamage(UUID damagedPlayerId, UUID controllerId) {