Cleanup - More Lambdas to method references

This commit is contained in:
Jetz
2024-08-10 12:54:16 -04:00
parent 4614c6c0c9
commit f7d0929ea0
29 changed files with 62 additions and 68 deletions

View File

@@ -1602,7 +1602,7 @@ public class CardProperty {
if (!(property.contains("LKI") ? lki : card).isAttacking()) return false;
if (property.equals("attacking")) return true;
if (property.endsWith("Alone")) {
return CardLists.count(card.getGame().getLastStateBattlefield(), c -> c.isAttacking()) == 1;
return CardLists.count(card.getGame().getLastStateBattlefield(), Card::isAttacking) == 1;
}
if (property.equals("attackingYou")) return combat.isAttacking(card, sourceController);
if (property.equals("attackingSame")) {