mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Duneblast - Fixed that it was not possible to not select a creature if the controller had a creature on the battlefield.
This commit is contained in:
parent
bb10022ab5
commit
e779556c11
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class DuneblastEffect extends OneShotEffect {
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
Target target = new TargetCreaturePermanent(1,1,new FilterCreaturePermanent("creature to keep"), true);
|
Target target = new TargetCreaturePermanent(0,1,new FilterCreaturePermanent("creature to keep"), true);
|
||||||
target.setRequired(true);
|
target.setRequired(true);
|
||||||
Permanent creatureToKeep = null;
|
Permanent creatureToKeep = null;
|
||||||
if (controller.choose(outcome, target, source.getSourceId(), game)) {
|
if (controller.choose(outcome, target, source.getSourceId(), game)) {
|
||||||
|
|
Loading…
Reference in a new issue