mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
tidy up MaxSameStoredRolls
This commit is contained in:
@@ -2630,8 +2630,7 @@ public class AbilityUtils {
|
|||||||
List<Integer> rolls = c.getStoredRolls();
|
List<Integer> rolls = c.getStoredRolls();
|
||||||
if (rolls != null) {
|
if (rolls != null) {
|
||||||
int lastNum = 0;
|
int lastNum = 0;
|
||||||
for (int i = 0; i < rolls.size(); i++) {
|
for (Integer roll : rolls) {
|
||||||
Integer roll = rolls.get(i);
|
|
||||||
if (roll.equals(lastNum)) {
|
if (roll.equals(lastNum)) {
|
||||||
continue; // no need to count instances of the same roll multiple times
|
continue; // no need to count instances of the same roll multiple times
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user