Fix Tundra Kavu (for #9030) and Death or Glory (#9055)

This commit is contained in:
Hidde vb 2022-06-03 21:34:52 +02:00 committed by GitHub
parent abed4219e0
commit a9d1a92abc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 33 deletions

View file

@ -79,16 +79,19 @@ public class BecomesBasicLandTargetEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game);
// choose land type
if (chooseLandType) {
Player controller = game.getPlayer(source.getControllerId());
Choice choice = new ChoiceBasicLandType();
if (controller != null && controller.choose(outcome, choice, game)) {
landTypes.add(SubType.byDescription(choice.getChoice()));
} else {
this.discard();
return;
}
this.chooseLandType(source, game);
}
}
protected void chooseLandType(Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
Choice choice = new ChoiceBasicLandType();
if (controller != null && controller.choose(outcome, choice, game)) {
landTypes.add(SubType.byDescription(choice.getChoice()));
} else {
this.discard();
}
}