mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed #5588
This commit is contained in:
parent
0bd8a25821
commit
e0d28436e9
1 changed files with 13 additions and 25 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.c;
|
||||
|
||||
import java.util.Set;
|
||||
|
@ -19,7 +18,6 @@ import mage.constants.Zone;
|
|||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetOpponent;
|
||||
|
||||
/**
|
||||
|
@ -75,16 +73,7 @@ class CombustibleGearhulkEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (controller != null && sourcePermanent != null) {
|
||||
UUID opponentId;
|
||||
if (game.getOpponents(controller.getId()).size() == 1) {
|
||||
opponentId = game.getOpponents(controller.getId()).iterator().next();
|
||||
} else {
|
||||
Target target = new TargetOpponent();
|
||||
controller.choose(outcome, target, source.getSourceId(), game);
|
||||
opponentId = target.getFirstTarget();
|
||||
}
|
||||
if (opponentId != null) {
|
||||
Player opponent = game.getPlayer(opponentId);
|
||||
Player opponent = game.getPlayer(source.getFirstTarget());
|
||||
if (opponent != null) {
|
||||
String questionDrawThree = "Have " + controller.getLogName() + " draw three cards?";
|
||||
if (opponent.chooseUse(outcome, questionDrawThree, source, game)) {
|
||||
|
@ -100,7 +89,6 @@ class CombustibleGearhulkEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue