mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
parent
abed4219e0
commit
a9d1a92abc
3 changed files with 25 additions and 33 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue