mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Fix stateBasedAction_Saga
This commit is contained in:
committed by
Hans Mackowiak
parent
9d4e02c2d4
commit
f3b771cb7d
@@ -1355,8 +1355,7 @@ public class GameAction {
|
||||
if (c.getCounters(CounterEnumType.LORE) < c.getFinalChapterNr()) {
|
||||
return false;
|
||||
}
|
||||
if (!game.getStack().hasSimultaneousStackEntries() &&
|
||||
!game.getStack().hasSourceOnStack(c, SpellAbilityPredicates.isChapter())) {
|
||||
if (!game.getStack().hasSourceOnStack(c, SpellAbilityPredicates.isChapter())) {
|
||||
sacrifice(c, null, table);
|
||||
checkAgain = true;
|
||||
}
|
||||
|
||||
@@ -172,8 +172,7 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
}
|
||||
|
||||
public final void clearFrozen() {
|
||||
// TODO: frozen triggered abilities and undoable costs have nasty
|
||||
// consequences
|
||||
// TODO: frozen triggered abilities and undoable costs have nasty consequences
|
||||
frozen = false;
|
||||
frozenStack.clear();
|
||||
}
|
||||
@@ -905,11 +904,14 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
}
|
||||
for (SpellAbilityStackInstance si : stack) {
|
||||
if (si.isTrigger() && si.getSourceCard().equals(source)) {
|
||||
if (pred == null) {
|
||||
if (pred == null || pred.apply(si.getSpellAbility(false))) {
|
||||
return true;
|
||||
}
|
||||
SpellAbility sa = si.getSpellAbility(false);
|
||||
if (pred.apply(sa)) {
|
||||
}
|
||||
}
|
||||
for (SpellAbility sa : simultaneousStackEntryList) {
|
||||
if (sa.isTrigger() && sa.getHostCard().equals(source)) {
|
||||
if (pred == null || pred.apply(sa)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user