mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
tidy up MaxSameStoredRolls
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user