mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
missed
This commit is contained in:
parent
0ef227087e
commit
3ff03e43ec
2 changed files with 24 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue