Merge pull request #7104 from magefree/fix/ChooseCardTypeEffect

Fixes ChooseCardTypeEffect always showing all card types
This commit is contained in:
Oleg Agafonov 2020-10-02 16:47:41 +02:00 committed by GitHub
commit 9f893752a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ public class ChooseCardTypeEffect extends OneShotEffect {
mageObject = game.getObject(source.getSourceId());
}
if (controller != null && mageObject != null) {
Choice typeChoice = new ChoiceCardType();
Choice typeChoice = new ChoiceCardType(true, cardTypes);
if (controller.choose(outcome, typeChoice, game)) {
game.informPlayers(mageObject.getLogName() + ": " + controller.getLogName() + " has chosen: " + typeChoice.getChoice());
game.getState().setValue(source.getSourceId() + "_type", typeChoice.getChoice());