- small fix to the last commit.

This commit is contained in:
jeffwadsworth 2021-09-09 09:56:08 -05:00
parent a04035036e
commit ae35c1b228
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ public class DashAbility extends StaticAbility implements AlternativeSourceCosts
if (player != null) {
this.resetDash();
for (AlternativeCost2 dashCost : alternativeSourceCosts) {
if (dashCost.canPay(ability, this, controllerId, game)
if (dashCost.canPay(ability, this, player.getId(), game)
&& player.chooseUse(Outcome.Benefit, KEYWORD
+ " the creature for " + dashCost.getText(true) + " ?", ability, game)) {
activateDash(dashCost, game);

View file

@ -99,7 +99,7 @@ public class EvokeAbility extends StaticAbility implements AlternativeSourceCost
if (player != null) {
this.resetEvoke();
for (AlternativeCost2 evokeCost : evokeCosts) {
if (evokeCost.canPay(ability, this, controllerId, game)
if (evokeCost.canPay(ability, this, player.getId(), game)
&& player.chooseUse(Outcome.Benefit, new StringBuilder(EVOKE_KEYWORD).append(" the creature for ").append(evokeCost.getText(true)).append(" ?").toString(), ability, game)) {
activateEvoke(evokeCost, game);
ability.getManaCostsToPay().clear();