mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fix static trigger messing up LTB trigger
This commit is contained in:
@@ -1378,7 +1378,7 @@ public class AbilityUtils {
|
||||
Player pl = sa.getActivatingPlayer();
|
||||
final Game game = pl.getGame();
|
||||
|
||||
if (sa.isTrigger() && sa.getParent() == null) {
|
||||
if (sa.isTrigger() && !sa.getTrigger().isStatic() && sa.getParent() == null) {
|
||||
// when trigger cost are paid before the effect does resolve, need to clean the trigger
|
||||
game.getTriggerHandler().resetActiveTriggers();
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ public class AnimateEffect extends AnimateEffectBase {
|
||||
if (sa.hasParam("AtEOT") && !tgts.isEmpty()) {
|
||||
registerDelayedTrigger(sa, sa.getParam("AtEOT"), tgts);
|
||||
}
|
||||
} // animateResolve extends SpellEffect {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see forge.card.abilityfactory.SpellEffect#getStackDescription(java.util.Map, forge.card.spellability.SpellAbility)
|
||||
|
||||
@@ -2564,7 +2564,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
continue;
|
||||
}
|
||||
for (final StaticAbility stAb : ca.getStaticAbilities()) {
|
||||
if (stAb.isSuppressed() || !stAb.checkConditions()) {
|
||||
if (!stAb.checkConditions()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -430,7 +430,7 @@ public class CostAdjustment {
|
||||
}
|
||||
|
||||
private static boolean checkRequirement(final SpellAbility sa, final StaticAbility st) {
|
||||
if (st.isSuppressed() || !st.checkConditions()) {
|
||||
if (!st.checkConditions()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1752,7 +1752,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
|
||||
public boolean isZeroTargets() {
|
||||
return getMinTargets() == 0 && getTargets().size() == 0;
|
||||
return getMinTargets() == 0 && getTargets().isEmpty();
|
||||
}
|
||||
|
||||
public boolean isMinTargetChosen() {
|
||||
|
||||
Reference in New Issue
Block a user