mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Cleanup - More Lambdas to method references
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user