Refactor confirmAction

This commit is contained in:
tool4EvEr
2021-05-07 18:14:20 +02:00
parent d6e7d1ffee
commit 3ab7886eab
80 changed files with 135 additions and 102 deletions

View File

@@ -103,7 +103,7 @@ public class HumanPlaySpellAbility {
}
final boolean playerManaConversion = human.hasManaConversion()
&& human.getController().confirmAction(ability, null, "Do you want to spend mana as though it were mana of any color to pay the cost?");
&& human.getController().confirmAction(ability, null, "Do you want to spend mana as though it were mana of any color to pay the cost?", null);
Cost abCost = ability.getPayCosts();
CostPayment payment = new CostPayment(abCost, ability);

View File

@@ -679,7 +679,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
* SpellAbility, java.lang.String, java.lang.String)
*/
@Override
public boolean confirmAction(final SpellAbility sa, final PlayerActionConfirmMode mode, final String message) {
public boolean confirmAction(final SpellAbility sa, final PlayerActionConfirmMode mode, final String message, Map<String, Object> params) {
if (sa != null && sa.getHostCard() != null && sa.hasParam("ShowCardInPrompt")) {
// The card wants another thing displayed in the prompt on mouse over rather than itself
Card show = null;