mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
missed
This commit is contained in:
parent
0ef227087e
commit
3ff03e43ec
2 changed files with 24 additions and 1 deletions
|
@ -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;
|
||||
|
|
24
Mage/src/mage/abilities/condition/common/Flipped.java
Normal file
24
Mage/src/mage/abilities/condition/common/Flipped.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue