mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
- Implemented Highspire Bell-Ringer (#13495)
- Commonized second spell condition
This commit is contained in:
parent
8e1805c874
commit
97b5341688
4 changed files with 69 additions and 13 deletions
|
|
@ -0,0 +1,19 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
import mage.watchers.common.SpellsCastWatcher;
|
||||
|
||||
/**
|
||||
* @author androosss
|
||||
*/
|
||||
public enum YouCastExactOneSpellThisTurnCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
SpellsCastWatcher watcher = game.getState().getWatcher(SpellsCastWatcher.class);
|
||||
return watcher != null && watcher.getSpellsCastThisTurn(source.getControllerId()).size() == 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue