mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Stop counting phased out cards
This commit is contained in:
@@ -4662,6 +4662,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
getGame().getTriggerHandler().runTrigger(TriggerType.PhaseIn, runParams, false);
|
getGame().getTriggerHandler().runTrigger(TriggerType.PhaseIn, runParams, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
game.updateLastStateForCard(this);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,11 @@ public class CardProperty {
|
|||||||
final Card lki = game.getChangeZoneLKIInfo(card);
|
final Card lki = game.getChangeZoneLKIInfo(card);
|
||||||
final Player controller = lki.getController();
|
final Player controller = lki.getController();
|
||||||
|
|
||||||
|
// CR 702.25b if card is phased out it will not count unless specifically asked for
|
||||||
|
if (card.isPhasedOut() && !property.contains("phasedOut")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// by name can also have color names, so needs to happen before colors.
|
// by name can also have color names, so needs to happen before colors.
|
||||||
if (property.startsWith("named")) {
|
if (property.startsWith("named")) {
|
||||||
String name = TextUtil.fastReplace(property.substring(5), ";", ","); // for some legendary cards
|
String name = TextUtil.fastReplace(property.substring(5), ";", ","); // for some legendary cards
|
||||||
|
|||||||
@@ -253,6 +253,8 @@ public final class CardUtil {
|
|||||||
newCopy.setCounters(Maps.newHashMap(in.getCounters()));
|
newCopy.setCounters(Maps.newHashMap(in.getCounters()));
|
||||||
|
|
||||||
newCopy.setColor(in.determineColor().getColor());
|
newCopy.setColor(in.determineColor().getColor());
|
||||||
|
newCopy.setPhasedOut(in.isPhasedOut());
|
||||||
|
|
||||||
newCopy.setReceivedDamageFromThisTurn(in.getReceivedDamageFromThisTurn());
|
newCopy.setReceivedDamageFromThisTurn(in.getReceivedDamageFromThisTurn());
|
||||||
newCopy.setDamageHistory(in.getDamageHistory());
|
newCopy.setDamageHistory(in.getDamageHistory());
|
||||||
for (Card c : in.getBlockedThisTurn()) {
|
for (Card c : in.getBlockedThisTurn()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user