mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
cleanup to use appropriate method
This commit is contained in:
parent
9863e23435
commit
2bdf27897f
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue