PlayEffect: avoid confirmAction

This commit is contained in:
tool4EvEr
2021-05-21 23:03:33 +02:00
parent af1afb5348
commit 6618f71297
80 changed files with 96 additions and 151 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?", null);
&& human.getController().confirmAction(ability, null, "Do you want to spend mana as though it were mana of any color to pay the cost?");
Cost abCost = ability.getPayCosts();
CostPayment payment = new CostPayment(abCost, ability);

View File

@@ -675,7 +675,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, Map<String, Object> params) {
public boolean confirmAction(final SpellAbility sa, final PlayerActionConfirmMode mode, final String message) {
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;