fixed Sentinel's Mark trigger

This commit is contained in:
Evan Kranzler 2019-01-12 17:25:34 -05:00
parent 0311ca8c6e
commit 0ca71a2616

View file

@ -17,7 +17,9 @@ import java.util.Set;
public enum AddendumCondition implements Condition {
instance;
private static final Set<TurnPhase> turnPhases = EnumSet.of(TurnPhase.PRECOMBAT_MAIN, TurnPhase.POSTCOMBAT_MAIN);
private static final Set<TurnPhase> turnPhases = EnumSet.of(
TurnPhase.PRECOMBAT_MAIN, TurnPhase.POSTCOMBAT_MAIN
);
@Override
public boolean apply(Game game, Ability source) {
@ -25,6 +27,9 @@ public enum AddendumCondition implements Condition {
!turnPhases.contains(game.getTurn().getPhase().getType())) {
return false;
}
if (CastFromEverywhereSourceCondition.instance.apply(game, source)) {
return true;
}
Spell spell = game.getSpell(source.getSourceId());
return spell != null && !spell.isCopy();
}