Merge pull request #3528 from kevlahnota/newmaster2

update CardTranslation
This commit is contained in:
Anthony Calosa
2023-07-26 07:10:57 +08:00
committed by GitHub
11 changed files with 2378 additions and 13 deletions

View File

@@ -497,10 +497,9 @@ public abstract class SpellAbilityEffect {
final Card hostCard = sa.getHostCard();
final Game game = hostCard.getGame();
final Card eff = new Card(game.nextCardId(), game);
String finalname = name.replaceAll("\\([^()]*\\)", "");
eff.setTimestamp(game.getNextTimestamp());
eff.setName(finalname);
eff.setName(name);
eff.setColor(hostCard.getColor().getColor());
// if name includes emblem then it should be one
if (name.startsWith("Emblem")) {