From ec23136a452774941c6699d2ea6c42c62146fb67 Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Tue, 14 Jan 2025 07:29:07 +0100 Subject: [PATCH] ~ formatting --- forge-ai/src/main/java/forge/ai/ability/TokenAi.java | 2 +- .../src/main/java/forge/game/ability/SpellAbilityEffect.java | 2 +- forge-game/src/main/java/forge/game/card/Card.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/TokenAi.java b/forge-ai/src/main/java/forge/ai/ability/TokenAi.java index a3c39d32119..dd53f060877 100644 --- a/forge-ai/src/main/java/forge/ai/ability/TokenAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/TokenAi.java @@ -498,7 +498,7 @@ public boolean willPayUnlessCost(SpellAbility sa, Player payer, Cost cost, boole if (!tokenCard.isCreature() || tokenCard.getNetToughness() < 1) { return false; } - int evalActivator = ComputerUtilCard.evaluateCreature(tokenCard) + ComputerUtilCard.evaluateCreatureList(p.getCreaturesInPlay());; + int evalActivator = ComputerUtilCard.evaluateCreature(tokenCard) + ComputerUtilCard.evaluateCreatureList(p.getCreaturesInPlay()); int evalPayerCreatures = ComputerUtilCard.evaluateCreatureList(payer.getCreaturesInPlay()); if (evalActivator > evalPayerCreatures) { diff --git a/forge-game/src/main/java/forge/game/ability/SpellAbilityEffect.java b/forge-game/src/main/java/forge/game/ability/SpellAbilityEffect.java index a1f75d46145..5a380b62b93 100644 --- a/forge-game/src/main/java/forge/game/ability/SpellAbilityEffect.java +++ b/forge-game/src/main/java/forge/game/ability/SpellAbilityEffect.java @@ -80,8 +80,8 @@ public final String getStackDescriptionWithSubs(final Map params } // by typing "SpellDescription" they want to bypass the Effect's string builder if ("SpellDescription".equalsIgnoreCase(stackDesc)) { - String rawSDesc = params.get("SpellDescription"); if (params.containsKey("SpellDescription")) { + String rawSDesc = params.get("SpellDescription"); if (rawSDesc.contains(",,,,,,")) rawSDesc = rawSDesc.replaceAll(",,,,,,", " "); if (rawSDesc.contains(",,,")) rawSDesc = rawSDesc.replaceAll(",,,", " "); String spellDesc = CardTranslation.translateSingleDescriptionText(rawSDesc, sa.getHostCard()); diff --git a/forge-game/src/main/java/forge/game/card/Card.java b/forge-game/src/main/java/forge/game/card/Card.java index 5d85d6b612d..aa269260dd7 100644 --- a/forge-game/src/main/java/forge/game/card/Card.java +++ b/forge-game/src/main/java/forge/game/card/Card.java @@ -1057,7 +1057,7 @@ public final boolean isSplitCard() { // Normal Split Cards, these need to return true before Split States are added if (getRules() != null && getRules().getSplitType() == CardSplitType.Split) { return true; - }; + } // in case or clones or copies return hasState(CardStateName.LeftSplit); }