mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[KHM] Blessing of Frost - Fixed creatures not getting counters (fixes #7512)
This commit is contained in:
parent
7ce36cffa8
commit
5f8013b4a7
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ import mage.constants.Outcome;
|
|||
import mage.constants.SuperType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
import mage.game.Game;
|
||||
|
|
@ -76,9 +77,9 @@ class BlessingOfFrostEffect extends OneShotEffect {
|
|||
}
|
||||
int snow = source.getManaCostsToPay().getUsedManaToPay().getSnow();
|
||||
if (snow > 0) {
|
||||
TargetAmount target = new TargetCreaturePermanentAmount(snow);
|
||||
TargetAmount target = new TargetCreaturePermanentAmount(snow, StaticFilters.FILTER_CONTROLLED_CREATURE);
|
||||
target.setNotTarget(true);
|
||||
player.choose(outcome, target, source.getSourceId(), game);
|
||||
target.chooseTarget(outcome, player.getId(), source, game);
|
||||
for (UUID targetId : target.getTargets()) {
|
||||
Permanent permanent = game.getPermanent(targetId);
|
||||
if (permanent == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue