cleanup to use appropriate method

This commit is contained in:
xenohedron 2024-06-29 23:20:22 -04:00
parent 9863e23435
commit 2bdf27897f
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ class ChooseHumanMerfolkOrGoblinEffect extends OneShotEffect {
controller.choose(outcome, choice, game);
game.informPlayers(permanent.getName() + ": " + controller.getLogName() + " has secretly chosen a creature type.");
SubType chosenType = SubType.fromString(choice.getChoice());
SubType chosenType = SubType.byDescription(choice.getChoice());
setSecretCreatureType(chosenType, source, game);
setSecretOwner(source.getControllerId(), source, game);
return true;

View file

@ -81,7 +81,7 @@ class MarchFromVelisVelEffect extends OneShotEffect {
choice.setMessage("Choose a nonbasic land type");
choice.setChoices(SubType.getNonbasicLandTypes().stream().map(SubType::toString).collect(Collectors.toSet()));
player.choose(outcome, choice, game);
SubType subType = SubType.fromString(choice.getChoice());
SubType subType = SubType.byDescription(choice.getChoice());
if (subType == null) {
return false;
}