mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed Sentinel's Mark trigger
This commit is contained in:
parent
0311ca8c6e
commit
0ca71a2616
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue