mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[CLB] Implemented Passageway Seer
This commit is contained in:
parent
3431d553a9
commit
edbd27c2fe
3 changed files with 77 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum HaveInitiativeCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return source.isControlledBy(game.getInitiativeId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "if you have the initiative";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue