This commit is contained in:
Loki 2011-07-06 21:47:56 +03:00
parent 0ef227087e
commit 3ff03e43ec
2 changed files with 24 additions and 1 deletions

View file

@ -48,7 +48,6 @@ import mage.abilities.effects.common.continious.BoostSourceEffect;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.filter.Filter;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.common.FilterLandCard;
import mage.game.Game;

View file

@ -0,0 +1,24 @@
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.game.Game;
import mage.game.permanent.Permanent;
public class Flipped implements Condition {
private static Flipped fInstance = new Flipped();
public static Condition getInstance() {
return fInstance;
}
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
return p.isFlipped();
}
return false;
}
}