mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Costs should trigger Ranar/Laelia
This commit is contained in:
committed by
Michael Kamensky
parent
272a7afe9e
commit
17b5098602
@@ -237,7 +237,7 @@ public class CostAdjustment {
|
|||||||
table.put(ZoneType.Graveyard, d.getZone().getZoneType(), d);
|
table.put(ZoneType.Graveyard, d.getZone().getZoneType(), d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
table.triggerChangesZoneAll(game, null);
|
table.triggerChangesZoneAll(game, sa);
|
||||||
}
|
}
|
||||||
if (sa.getHostCard().hasKeyword(Keyword.CONVOKE)) {
|
if (sa.getHostCard().hasKeyword(Keyword.CONVOKE)) {
|
||||||
adjustCostByConvokeOrImprovise(cost, sa, false, test);
|
adjustCostByConvokeOrImprovise(cost, sa, false, test);
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ public class CostMill extends CostPart {
|
|||||||
public final boolean payAsDecided(final Player ai, final PaymentDecision decision, SpellAbility ability) {
|
public final boolean payAsDecided(final Player ai, final PaymentDecision decision, SpellAbility ability) {
|
||||||
CardZoneTable table = new CardZoneTable();
|
CardZoneTable table = new CardZoneTable();
|
||||||
ability.getPaidHash().put("Milled", (CardCollection) ai.mill(decision.c, ZoneType.Graveyard, false, ability, table));
|
ability.getPaidHash().put("Milled", (CardCollection) ai.mill(decision.c, ZoneType.Graveyard, false, ability, table));
|
||||||
table.triggerChangesZoneAll(ai.getGame(), null);
|
table.triggerChangesZoneAll(ai.getGame(), ability);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ public abstract class CostPartWithList extends CostPart {
|
|||||||
// copy table because the original get cleaned after the cost is done
|
// copy table because the original get cleaned after the cost is done
|
||||||
final CardZoneTable copyTable = new CardZoneTable();
|
final CardZoneTable copyTable = new CardZoneTable();
|
||||||
copyTable.putAll(table);
|
copyTable.putAll(table);
|
||||||
copyTable.triggerChangesZoneAll(payer.getGame(), null);
|
copyTable.triggerChangesZoneAll(payer.getGame(), ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -698,7 +698,7 @@ public class HumanPlay {
|
|||||||
ability.clearTappedForConvoke();
|
ability.clearTappedForConvoke();
|
||||||
}
|
}
|
||||||
if (!table.isEmpty() && !manaInputCancelled) {
|
if (!table.isEmpty() && !manaInputCancelled) {
|
||||||
table.triggerChangesZoneAll(game, null);
|
table.triggerChangesZoneAll(game, ability);
|
||||||
}
|
}
|
||||||
return !manaInputCancelled;
|
return !manaInputCancelled;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user