AbilityFactory.readTarget add "Permanent" to commonStuff list

This commit is contained in:
Northmoc
2022-10-17 17:05:20 -04:00
parent b0c192f9c5
commit b8befbbccd

View File

@@ -334,7 +334,7 @@ public final class AbilityFactory {
String tgtWhat = mapParams.get("ValidTgts");
final String[] commonStuff = new String[] {
//list of common one word non-core type ValidTgts that should be lowercase in the target prompt
"Player", "Opponent", "Card", "Spell"
"Player", "Opponent", "Card", "Spell", "Permanent"
};
if (Arrays.asList(commonStuff).contains(tgtWhat) || CardType.CoreType.isValidEnum(tgtWhat)) {
tgtWhat = tgtWhat.toLowerCase();