mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Add controll != null check.
Added recommended changes.
This commit is contained in:
parent
17705ea302
commit
6d8b37b2ac
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class MetamorphoseEffect extends OneShotEffect {
|
|||
Permanent permanent = game.getPermanentOrLKIBattlefield(source.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
Player controller = game.getPlayer(permanent.getControllerId());
|
||||
if (controller.chooseUse(Outcome.PutCardInPlay, "Do you wish to put an artifact, creature, enchantment, or land card onto the battlefield?", source, game)) {
|
||||
if (controller != null && controller.canRespond() && controller.chooseUse(Outcome.PutCardInPlay, "Do you wish to put an artifact, creature, enchantment, or land card onto the battlefield?", source, game)) {
|
||||
TargetCardInHand target = new TargetCardInHand(filter);
|
||||
target.clearChosen();
|
||||
if (controller.chooseTarget(outcome, target, source, game)) {
|
||||
|
|
Loading…
Reference in a new issue