mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix missing checks (#5601)
This commit is contained in:
@@ -96,7 +96,7 @@ public class PhasesEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
} else { // just phase out
|
} else { // just phase out
|
||||||
for (final Card tgtC : tgtCards) {
|
for (final Card tgtC : tgtCards) {
|
||||||
if (!tgtC.isPhasedOut()) {
|
if (!tgtC.isPhasedOut() && !StaticAbilityCantPhase.cantPhaseOut(tgtC)) {
|
||||||
tgtC.phase(false);
|
tgtC.phase(false);
|
||||||
if (tgtC.isPhasedOut()) {
|
if (tgtC.isPhasedOut()) {
|
||||||
if (sa.hasParam("RememberAffected")) {
|
if (sa.hasParam("RememberAffected")) {
|
||||||
|
|||||||
@@ -5570,6 +5570,9 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
// CR 702.26g
|
// CR 702.26g
|
||||||
if (!getAllAttachedCards().isEmpty()) {
|
if (!getAllAttachedCards().isEmpty()) {
|
||||||
for (final Card eq : getAllAttachedCards()) {
|
for (final Card eq : getAllAttachedCards()) {
|
||||||
|
if (!eq.isPhasedOut() && StaticAbilityCantPhase.cantPhaseOut(eq)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (eq.isPhasedOut() == phasingIn) {
|
if (eq.isPhasedOut() == phasingIn) {
|
||||||
eq.phase(fromUntapStep, false);
|
eq.phase(fromUntapStep, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user