diff --git a/Mage/src/main/java/mage/abilities/dynamicvalue/common/CardsInControllerGraveyardCount.java b/Mage/src/main/java/mage/abilities/dynamicvalue/common/CardsInControllerGraveyardCount.java index 3242e4d845..6702e42e1d 100644 --- a/Mage/src/main/java/mage/abilities/dynamicvalue/common/CardsInControllerGraveyardCount.java +++ b/Mage/src/main/java/mage/abilities/dynamicvalue/common/CardsInControllerGraveyardCount.java @@ -9,13 +9,12 @@ import mage.game.Game; import mage.players.Player; /** - * * @author North */ public class CardsInControllerGraveyardCount implements DynamicValue { - private FilterCard filter; - private Integer amount; + private final FilterCard filter; + private final Integer amount; public CardsInControllerGraveyardCount() { this(StaticFilters.FILTER_CARD, 1); @@ -39,7 +38,9 @@ public class CardsInControllerGraveyardCount implements DynamicValue { public int calculate(Game game, Ability sourceAbility, Effect effect) { Player player = game.getPlayer(sourceAbility.getControllerId()); if (player != null) { - return amount * player.getGraveyard().count(filter, game); + return amount * player.getGraveyard().count( + filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game + ); } return 0; }