mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
isBlank() is from Java 11
This commit is contained in:
@@ -141,7 +141,7 @@ public class PlayEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
} else if (sa.hasParam("CopyFromChosenName")) {
|
} else if (sa.hasParam("CopyFromChosenName")) {
|
||||||
String name = source.getChosenName();
|
String name = source.getChosenName();
|
||||||
if (name.isBlank()) return;
|
if (name.trim().isEmpty()) return;
|
||||||
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), controller);
|
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), controller);
|
||||||
card.setToken(true);
|
card.setToken(true);
|
||||||
tgtCards = new CardCollection();
|
tgtCards = new CardCollection();
|
||||||
|
|||||||
Reference in New Issue
Block a user