implement [ACR] Senu, Keen-Eyed Protector ; small refactor on AttacksAndIsNotBlockedTriggeredAbility's setTargetPointer

This commit is contained in:
Susucre 2024-07-06 18:20:08 +02:00
parent c41052066d
commit 9bc1289341
21 changed files with 426 additions and 140 deletions

View file

@ -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;
}
}