forked from External/mage
fix The Great Henge cost reduction (#11165)
This commit is contained in:
parent
15ca9679d9
commit
6b7c0529b9
1 changed files with 1 additions and 4 deletions
|
|
@ -16,10 +16,7 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.util.CardUtil;
|
||||
|
|
@ -79,7 +76,7 @@ class TheGreatHengeCostReductionEffect extends CostModificationEffectImpl {
|
|||
public boolean apply(Game game, Ability source, Ability abilityToModify) {
|
||||
int reductionAmount = game.getBattlefield()
|
||||
.getAllActivePermanents(
|
||||
StaticFilters.FILTER_PERMANENT_CREATURE, source.getControllerId(), game
|
||||
StaticFilters.FILTER_PERMANENT_CREATURE, abilityToModify.getControllerId(), game
|
||||
).stream()
|
||||
.map(Permanent::getPower)
|
||||
.mapToInt(MageInt::getValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue