From 3ff03e43ec79ee946df0f215ac5717ebeb9a591c Mon Sep 17 00:00:00 2001 From: Loki Date: Wed, 6 Jul 2011 21:47:56 +0300 Subject: [PATCH] missed --- .../championsofkamigawa/BudokaGardener.java | 1 - .../abilities/condition/common/Flipped.java | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 Mage/src/mage/abilities/condition/common/Flipped.java diff --git a/Mage.Sets/src/mage/sets/championsofkamigawa/BudokaGardener.java b/Mage.Sets/src/mage/sets/championsofkamigawa/BudokaGardener.java index 022303cdb9..65ad10ffad 100644 --- a/Mage.Sets/src/mage/sets/championsofkamigawa/BudokaGardener.java +++ b/Mage.Sets/src/mage/sets/championsofkamigawa/BudokaGardener.java @@ -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; diff --git a/Mage/src/mage/abilities/condition/common/Flipped.java b/Mage/src/mage/abilities/condition/common/Flipped.java new file mode 100644 index 0000000000..de437ec153 --- /dev/null +++ b/Mage/src/mage/abilities/condition/common/Flipped.java @@ -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; + } +}