forked from External/mage
Added spectacle hints to cards (opponents lost life)
This commit is contained in:
parent
283b101a08
commit
f0c76eb529
3 changed files with 52 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.dynamicvalue.common.OpponentsLostLifeCount;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public enum OpponentsLostLifeCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return OpponentsLostLifeCount.instance.calculate(game, source.getControllerId()) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "opponents lost life";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue