mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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
|
||||
if (AbilityFactory.checkConditional(sa)) {
|
||||
if (params.get("UnlessCost") == null) {
|
||||
if (params.get("UnlessCost") == null || sa.isWrapper()) {
|
||||
sa.resolve();
|
||||
|
||||
//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) {
|
||||
//only tap card if the mana is needed
|
||||
manaCost = Input_PayManaCostUtil.activateManaAbility(fakeAbility, card, manaCost);
|
||||
showMessage();
|
||||
|
||||
if (manaCost.isPaid()) {
|
||||
resetManaCost();
|
||||
@@ -112,6 +111,9 @@ public class Input_PayManaCost_Ability extends Input {
|
||||
stop();
|
||||
paidCommand.execute();
|
||||
}
|
||||
else{
|
||||
showMessage();
|
||||
}
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
||||
Reference in New Issue
Block a user