Refactor: replaced sourceId by source and introduced source param in some methods;

This commit is contained in:
Oleg Agafonov 2020-12-12 20:23:19 +04:00
parent 2bb472607b
commit db239a1055
3205 changed files with 7080 additions and 6795 deletions

View file

@ -95,7 +95,7 @@ public class ProwlAbility extends StaticAbility implements AlternativeSourceCost
if (ProwlCondition.instance.apply(game, ability)) {
this.resetProwl();
for (AlternativeCost2 prowlCost : prowlCosts) {
if (prowlCost.canPay(ability, sourceId, ability.getControllerId(), game)
if (prowlCost.canPay(ability, this, ability.getControllerId(), game)
&& player.chooseUse(Outcome.Benefit, "Cast for "
+ PROWL_KEYWORD + " cost " + prowlCost.getText(true)
+ " ?", ability, game)) {