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