mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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()) {
|
for (Card card2 : card.getEnchantedBy()) {
|
||||||
if (card2.getOwner() != ai) {
|
if (card2.getOwner() != ai) {
|
||||||
disabledByEnemy = true;
|
disabledByEnemy = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!disabledByEnemy) {
|
if (!disabledByEnemy) {
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ public class DamagePreventAi extends SpellAbilityAi {
|
|||||||
for (final Object o : objects) {
|
for (final Object o : objects) {
|
||||||
if (threatenedObjects.contains(o)) {
|
if (threatenedObjects.contains(o)) {
|
||||||
chance = true;
|
chance = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -283,6 +283,7 @@ public final class CardRules implements ICardCharacteristics {
|
|||||||
for (String staticAbility : mainPart.getStaticAbilities()) { // Check for Grist
|
for (String staticAbility : mainPart.getStaticAbilities()) { // Check for Grist
|
||||||
if (staticAbility.contains("CharacteristicDefining$ True") && staticAbility.contains("AddType$ Creature")) {
|
if (staticAbility.contains("CharacteristicDefining$ True") && staticAbility.contains("AddType$ Creature")) {
|
||||||
creature = true;
|
creature = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type.isLegendary() && creature) {
|
if (type.isLegendary() && creature) {
|
||||||
|
|||||||
@@ -251,6 +251,7 @@ public class QuestEventDraft implements IQuestEvent {
|
|||||||
for (final String name : aiNames) {
|
for (final String name : aiNames) {
|
||||||
if (playerName.equals(name)) {
|
if (playerName.equals(name)) {
|
||||||
isHumanPlayer = false;
|
isHumanPlayer = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -812,6 +813,7 @@ public class QuestEventDraft implements IQuestEvent {
|
|||||||
for (CardEdition set : block.getSets()) {
|
for (CardEdition set : block.getSets()) {
|
||||||
if (!allowedQuestSets.contains(set)) {
|
if (!allowedQuestSets.contains(set)) {
|
||||||
blockAllowed = false;
|
blockAllowed = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user