Added spectacle hints to cards (opponents lost life)

This commit is contained in:
Oleg Agafonov 2019-02-06 18:27:23 +04:00
parent 283b101a08
commit f0c76eb529
3 changed files with 52 additions and 0 deletions

View file

@ -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";
}
}