Skip to content

Commit

Permalink
~ formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Jan 14, 2025
1 parent 24e16ab commit ec23136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion forge-ai/src/main/java/forge/ai/ability/TokenAi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public final String getStackDescriptionWithSubs(final Map<String, String> 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());
Expand Down
2 changes: 1 addition & 1 deletion forge-game/src/main/java/forge/game/card/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ec23136

Please sign in to comment.