mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Ancestral Vision and similar cards should also be castable without paying their mana cost (117.6a).
This commit is contained in:
@@ -141,12 +141,18 @@ public final class GameActionUtil {
|
|||||||
sar.setZone(null);
|
sar.setZone(null);
|
||||||
newSA.setMayPlay(o.getAbility());
|
newSA.setMayPlay(o.getAbility());
|
||||||
newSA.setMayPlayOriginal(sa);
|
newSA.setMayPlayOriginal(sa);
|
||||||
|
|
||||||
|
boolean changedManaCost = false;
|
||||||
if (o.getPayManaCost() == PayManaCost.NO) {
|
if (o.getPayManaCost() == PayManaCost.NO) {
|
||||||
newSA.setBasicSpell(false);
|
newSA.setBasicSpell(false);
|
||||||
newSA.setPayCosts(newSA.getPayCosts().copyWithNoMana());
|
newSA.setPayCosts(newSA.getPayCosts().copyWithNoMana());
|
||||||
|
changedManaCost = true;
|
||||||
} else if (o.getAltManaCost() != null) {
|
} else if (o.getAltManaCost() != null) {
|
||||||
newSA.setBasicSpell(false);
|
newSA.setBasicSpell(false);
|
||||||
newSA.setPayCosts(newSA.getPayCosts().copyWithDefinedMana(o.getAltManaCost()));
|
newSA.setPayCosts(newSA.getPayCosts().copyWithDefinedMana(o.getAltManaCost()));
|
||||||
|
changedManaCost = true;
|
||||||
|
}
|
||||||
|
if (changedManaCost) {
|
||||||
if ("0".equals(sa.getParam("ActivationLimit")) && sa.getHostCard().getManaCost().isNoCost()) {
|
if ("0".equals(sa.getParam("ActivationLimit")) && sa.getHostCard().getManaCost().isNoCost()) {
|
||||||
sar.setLimitToCheck(null);
|
sar.setLimitToCheck(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user