tidy up MaxSameStoredRolls

This commit is contained in:
Northmoc
2023-10-25 18:34:02 -04:00
parent ffe39bb40f
commit 2a298f7aa6

View File

@@ -2630,8 +2630,7 @@ public class AbilityUtils {
List<Integer> rolls = c.getStoredRolls();
if (rolls != null) {
int lastNum = 0;
for (int i = 0; i < rolls.size(); i++) {
Integer roll = rolls.get(i);
for (Integer roll : rolls) {
if (roll.equals(lastNum)) {
continue; // no need to count instances of the same roll multiple times
}