forked from External/mage
implement [LCI] Bedrock Tortoise
common ToughnessGreaterThanPowerPredicate
This commit is contained in:
parent
3b0e7ce826
commit
80ca466a0d
5 changed files with 89 additions and 33 deletions
|
|
@ -0,0 +1,22 @@
|
|||
package mage.filter.predicate.mageobject;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public enum ToughnessGreaterThanPowerPredicate implements Predicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(MageObject input, Game game) {
|
||||
return input.getToughness().getValue() > input.getPower().getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "toughness greater than its power";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue