mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
removing the no-longer-necessary SourceIsCreature condition
This commit is contained in:
parent
9dc0bf97fb
commit
5444b2a53b
1 changed files with 0 additions and 25 deletions
|
@ -1,25 +0,0 @@
|
||||||
package mage.abilities.condition.common;
|
|
||||||
|
|
||||||
import mage.MageObject;
|
|
||||||
import mage.abilities.Ability;
|
|
||||||
import mage.abilities.condition.Condition;
|
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.game.Game;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author klayhamn
|
|
||||||
*/
|
|
||||||
public class SourceIsCreatureCondition implements Condition {
|
|
||||||
|
|
||||||
private static final SourceIsCreatureCondition fInstance = new SourceIsCreatureCondition();
|
|
||||||
|
|
||||||
public static Condition getInstance() {
|
|
||||||
return fInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean apply(Game game, Ability source) {
|
|
||||||
MageObject object = game.getObject(source.getSourceId());
|
|
||||||
return object != null && object.getCardType().contains(CardType.CREATURE);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue