mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fix Shifting Shadow trigger
This commit is contained in:
@@ -243,7 +243,7 @@ public class Cost implements Serializable {
|
||||
} else {
|
||||
CostPart cp = parseCostPart(part, tapCost, untapCost);
|
||||
if (null != cp )
|
||||
if (cp instanceof CostPartMana ) {
|
||||
if (cp instanceof CostPartMana) {
|
||||
parsedMana = (CostPartMana) cp;
|
||||
} else {
|
||||
this.costParts.add(cp);
|
||||
|
||||
@@ -47,19 +47,22 @@ public class CostAdjustment {
|
||||
Cost result = cost.copy();
|
||||
|
||||
boolean isStateChangeToFaceDown = false;
|
||||
if (sa.isSpell() && sa.isCastFaceDown()) {
|
||||
// Turn face down to apply cost modifiers correctly
|
||||
host.turnFaceDownNoUpdate();
|
||||
isStateChangeToFaceDown = true;
|
||||
} // isSpell
|
||||
|
||||
// Commander Tax there
|
||||
if (sa.isSpell() && host.isCommander() && ZoneType.Command.equals(host.getCastFrom())) {
|
||||
int n = player.getCommanderCast(host) * 2;
|
||||
if (n > 0) {
|
||||
result.add(new Cost(ManaCost.get(n), false));
|
||||
if (sa.isSpell()) {
|
||||
if (sa.isCastFaceDown()) {
|
||||
// Turn face down to apply cost modifiers correctly
|
||||
host.turnFaceDownNoUpdate();
|
||||
isStateChangeToFaceDown = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Commander Tax there
|
||||
if (host.isCommander() && ZoneType.Command.equals(host.getCastFrom())) {
|
||||
int n = player.getCommanderCast(host) * 2;
|
||||
if (n > 0) {
|
||||
result.add(new Cost(ManaCost.get(n), false));
|
||||
}
|
||||
}
|
||||
} // isSpell
|
||||
|
||||
CardCollection cardsOnBattlefield = new CardCollection(game.getCardsIn(ZoneType.Battlefield));
|
||||
cardsOnBattlefield.addAll(game.getCardsIn(ZoneType.Stack));
|
||||
|
||||
Reference in New Issue
Block a user