mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fix for Trigger Wrapper incorrectly prompting for Unless Cost twice.
This commit is contained in:
@@ -2142,7 +2142,7 @@ public class AbilityFactory {
|
|||||||
|
|
||||||
//check conditions
|
//check conditions
|
||||||
if (AbilityFactory.checkConditional(sa)) {
|
if (AbilityFactory.checkConditional(sa)) {
|
||||||
if (params.get("UnlessCost") == null) {
|
if (params.get("UnlessCost") == null || sa.isWrapper()) {
|
||||||
sa.resolve();
|
sa.resolve();
|
||||||
|
|
||||||
//try to resolve subabilities (see null check above)
|
//try to resolve subabilities (see null check above)
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ public class Input_PayManaCost_Ability extends Input {
|
|||||||
public void selectCard(Card card, PlayerZone zone) {
|
public void selectCard(Card card, PlayerZone zone) {
|
||||||
//only tap card if the mana is needed
|
//only tap card if the mana is needed
|
||||||
manaCost = Input_PayManaCostUtil.activateManaAbility(fakeAbility, card, manaCost);
|
manaCost = Input_PayManaCostUtil.activateManaAbility(fakeAbility, card, manaCost);
|
||||||
showMessage();
|
|
||||||
|
|
||||||
if (manaCost.isPaid()) {
|
if (manaCost.isPaid()) {
|
||||||
resetManaCost();
|
resetManaCost();
|
||||||
@@ -112,6 +111,9 @@ public class Input_PayManaCost_Ability extends Input {
|
|||||||
stop();
|
stop();
|
||||||
paidCommand.execute();
|
paidCommand.execute();
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
showMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|||||||
Reference in New Issue
Block a user