forked from External/mage
implement [ACR] Senu, Keen-Eyed Protector ; small refactor on AttacksAndIsNotBlockedTriggeredAbility's setTargetPointer
This commit is contained in:
parent
c41052066d
commit
9bc1289341
21 changed files with 426 additions and 140 deletions
|
|
@ -0,0 +1,21 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* If {this} is exiled
|
||||
*
|
||||
* @author Susucr
|
||||
*/
|
||||
|
||||
public enum SourceInExileCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return game.getState().getZone(source.getSourceId()) == Zone.EXILED;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue