mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge pull request #7104 from magefree/fix/ChooseCardTypeEffect
Fixes ChooseCardTypeEffect always showing all card types
This commit is contained in:
commit
9f893752a4
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue