[OTJ] Implement Stoic Sphinx

This commit is contained in:
Susucre 2024-03-30 19:21:19 +01:00
parent 64ce8d3587
commit 36857782fe
4 changed files with 82 additions and 5 deletions

View file

@ -0,0 +1,26 @@
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.game.Game;
import mage.watchers.common.SpellsCastWatcher;
/**
* @author Susucr
*/
public enum HaventCastSpellThisTurnCondition implements Condition {
instance;
@Override
public boolean apply(Game game, Ability source) {
return game.getState()
.getWatcher(SpellsCastWatcher.class)
.getSpellsCastThisTurn(source.getControllerId())
.isEmpty();
}
@Override
public String toString() {
return "if you haven't cast a spell this turn";
}
}