mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed battlebond land implementation
This commit is contained in:
parent
54bd43b4f6
commit
082adcfc75
6 changed files with 15 additions and 15 deletions
|
@ -29,7 +29,7 @@ package mage.cards.b;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.TwoOrMoreOpponentsCondition;
|
||||
import mage.abilities.condition.common.OneOpponentCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.abilities.mana.GreenManaAbility;
|
||||
|
@ -51,7 +51,7 @@ public class BountifulPromenade extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new TapSourceEffect(),
|
||||
TwoOrMoreOpponentsCondition.instance,
|
||||
OneOpponentCondition.instance,
|
||||
"tapped unless you have two or more opponents"
|
||||
), "tapped unless you have two or more opponents"
|
||||
));
|
||||
|
|
|
@ -29,7 +29,7 @@ package mage.cards.l;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.TwoOrMoreOpponentsCondition;
|
||||
import mage.abilities.condition.common.OneOpponentCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.abilities.mana.BlackManaAbility;
|
||||
|
@ -51,7 +51,7 @@ public class LuxurySuite extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new TapSourceEffect(),
|
||||
TwoOrMoreOpponentsCondition.instance,
|
||||
OneOpponentCondition.instance,
|
||||
"tapped unless you have two or more opponents"
|
||||
), "tapped unless you have two or more opponents"
|
||||
));
|
||||
|
|
|
@ -29,7 +29,7 @@ package mage.cards.m;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.TwoOrMoreOpponentsCondition;
|
||||
import mage.abilities.condition.common.OneOpponentCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.abilities.mana.BlackManaAbility;
|
||||
|
@ -51,7 +51,7 @@ public class MorphicPool extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new TapSourceEffect(),
|
||||
TwoOrMoreOpponentsCondition.instance,
|
||||
OneOpponentCondition.instance,
|
||||
"tapped unless you have two or more opponents"
|
||||
), "tapped unless you have two or more opponents"
|
||||
));
|
||||
|
|
|
@ -29,7 +29,7 @@ package mage.cards.s;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.TwoOrMoreOpponentsCondition;
|
||||
import mage.abilities.condition.common.OneOpponentCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.abilities.mana.BlueManaAbility;
|
||||
|
@ -51,7 +51,7 @@ public class SeaOfClouds extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new TapSourceEffect(),
|
||||
TwoOrMoreOpponentsCondition.instance,
|
||||
OneOpponentCondition.instance,
|
||||
"tapped unless you have two or more opponents"
|
||||
), "tapped unless you have two or more opponents"
|
||||
));
|
||||
|
|
|
@ -29,7 +29,7 @@ package mage.cards.s;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.TwoOrMoreOpponentsCondition;
|
||||
import mage.abilities.condition.common.OneOpponentCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.abilities.mana.GreenManaAbility;
|
||||
|
@ -51,7 +51,7 @@ public class SpireGarden extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new TapSourceEffect(),
|
||||
TwoOrMoreOpponentsCondition.instance,
|
||||
OneOpponentCondition.instance,
|
||||
"tapped unless you have two or more opponents"
|
||||
), "tapped unless you have two or more opponents"
|
||||
));
|
||||
|
|
|
@ -36,9 +36,9 @@ import java.util.UUID;
|
|||
|
||||
/**
|
||||
*
|
||||
* @author fireshoes
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum TwoOrMoreOpponentsCondition implements Condition {
|
||||
public enum OneOpponentCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
|
@ -52,16 +52,16 @@ public enum TwoOrMoreOpponentsCondition implements Condition {
|
|||
if (opponent != null) {
|
||||
opponentCount++;
|
||||
if (opponentCount > 1) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "you have two or more opponents";
|
||||
return "you have one opponent";
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue