mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Cleanup - Missing break from loop with no further consequences
This commit is contained in:
@@ -2092,6 +2092,7 @@ public class ComputerUtilCard {
|
||||
for (Card card2 : card.getEnchantedBy()) {
|
||||
if (card2.getOwner() != ai) {
|
||||
disabledByEnemy = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!disabledByEnemy) {
|
||||
|
||||
@@ -51,6 +51,7 @@ public class DamagePreventAi extends SpellAbilityAi {
|
||||
for (final Object o : objects) {
|
||||
if (threatenedObjects.contains(o)) {
|
||||
chance = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user