Cleanup - Missing break from loop with no further consequences

This commit is contained in:
Jetz
2024-08-10 10:19:01 -04:00
parent fae5cfc87e
commit 158ff30ff8
4 changed files with 5 additions and 0 deletions

View File

@@ -2092,6 +2092,7 @@ public class ComputerUtilCard {
for (Card card2 : card.getEnchantedBy()) {
if (card2.getOwner() != ai) {
disabledByEnemy = true;
break;
}
}
if (!disabledByEnemy) {

View File

@@ -51,6 +51,7 @@ public class DamagePreventAi extends SpellAbilityAi {
for (final Object o : objects) {
if (threatenedObjects.contains(o)) {
chance = true;
break;
}
}
} else {

View File

@@ -283,6 +283,7 @@ public final class CardRules implements ICardCharacteristics {
for (String staticAbility : mainPart.getStaticAbilities()) { // Check for Grist
if (staticAbility.contains("CharacteristicDefining$ True") && staticAbility.contains("AddType$ Creature")) {
creature = true;
break;
}
}
if (type.isLegendary() && creature) {

View File

@@ -251,6 +251,7 @@ public class QuestEventDraft implements IQuestEvent {
for (final String name : aiNames) {
if (playerName.equals(name)) {
isHumanPlayer = false;
break;
}
}
@@ -812,6 +813,7 @@ public class QuestEventDraft implements IQuestEvent {
for (CardEdition set : block.getSets()) {
if (!allowedQuestSets.contains(set)) {
blockAllowed = false;
break;
}
}