mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Using put instead of map.replace.
This commit is contained in:
parent
1c71526616
commit
5ea1bc8c37
1 changed files with 1 additions and 2 deletions
|
@ -306,8 +306,7 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
|
|||
defenderDamage(attacker, damage, game);
|
||||
} else {
|
||||
// Assign the damge left to first blocker
|
||||
int alreadyAssigned = assigned.get(blockerOrder.get(0));
|
||||
assigned.replace(blockerOrder.get(0), damage + alreadyAssigned);
|
||||
assigned.put(blockerOrder.get(0), assigned.get(blockerOrder.get(0)) + damage);
|
||||
}
|
||||
}
|
||||
for (UUID blockerId: blockerOrder) {
|
||||
|
|
Loading…
Reference in a new issue