mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
29 lines
691 B
Java
29 lines
691 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package mage.abilities.condition.common;
|
|
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.condition.Condition;
|
|
import mage.constants.PhaseStep;
|
|
import mage.game.Game;
|
|
|
|
/**
|
|
* @author LevelX2
|
|
*/
|
|
public enum AfterUpkeepStepCondtion implements Condition {
|
|
|
|
instance;
|
|
@Override
|
|
|
|
public boolean apply(Game game, Ability source) {
|
|
return game.getStep().getType().isAfter(PhaseStep.UPKEEP);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "after upkeep step";
|
|
}
|
|
}
|