mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -456,9 +456,10 @@ public class CombatUtil {
|
||||
CardList attackersWithLure = new CardList();
|
||||
for (Card attacker : attackers) {
|
||||
if (attacker.hasStartOfKeyword("All creatures able to block CARDNAME do so.")
|
||||
|| (attacker.hasStartOfKeyword("CARDNAME must be blocked if able.")
|
||||
&& combat.getBlockers(attacker).isEmpty()))
|
||||
attackersWithLure.add(attacker);
|
||||
|| (attacker.hasStartOfKeyword("CARDNAME must be blocked if able.")
|
||||
&& combat.getBlockers(attacker).isEmpty())) {
|
||||
attackersWithLure.add(attacker);
|
||||
}
|
||||
}
|
||||
|
||||
for (final Card attacker : attackersWithLure) {
|
||||
|
||||
@@ -897,7 +897,7 @@ public class ComputerUtilBlock {
|
||||
blockers = ComputerUtilBlock.getPossibleBlockers(attacker, chumpBlockers, combat);
|
||||
for (final Card blocker : blockers) {
|
||||
if (CombatUtil.canBlock(attacker, blocker, combat) && ComputerUtilBlock.getBlockersLeft().contains(blocker)
|
||||
&& (CombatUtil.mustBlockAnAttacker(blocker, combat)
|
||||
&& (CombatUtil.mustBlockAnAttacker(blocker, combat)
|
||||
|| blocker.hasKeyword("CARDNAME blocks each turn if able."))) {
|
||||
combat.addBlocker(attacker, blocker);
|
||||
ComputerUtilBlock.getBlockersLeft().removeAll(blocker);
|
||||
|
||||
@@ -858,7 +858,7 @@ public final class AbilityFactoryChangeZone {
|
||||
if (params.containsKey("GainControl")) {
|
||||
c.addController(af.getHostCard());
|
||||
}
|
||||
|
||||
|
||||
if (params.containsKey("AttachedTo")) {
|
||||
ArrayList<Card> list = AbilityFactory.getDefinedCards(sa.getSourceCard(), params.get("AttachedTo"), sa);
|
||||
if (!list.isEmpty()) {
|
||||
@@ -1047,7 +1047,7 @@ public final class AbilityFactoryChangeZone {
|
||||
c.enchantEntity(attachedTo);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (params.containsKey("Attacking")) {
|
||||
AllZone.getCombat().addAttacker(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user