[FIX] Fixes issue 294

This commit is contained in:
maurer.it 2011-10-19 19:22:21 -04:00
parent 6f844e0743
commit 6d26ab3f5d

View file

@ -48,6 +48,7 @@ import mage.watchers.WatcherImpl;
import java.util.*;
import mage.Constants.WatcherScope;
import mage.filter.common.FilterNonlandPermanent;
/**
* @author nantuko
@ -103,7 +104,7 @@ class SteelHellkiteDestroyEffect extends OneShotEffect {
if (watcher != null) {
int xValue = source.getManaCostsToPay().getX();
for (UUID uuid : watcher.damagedPlayers) {
for (Permanent permanent: game.getBattlefield().getAllActivePermanents()) {
for (Permanent permanent: game.getBattlefield().getActivePermanents(new FilterNonlandPermanent(), uuid, game)) {
if (permanent.getControllerId().equals(uuid) && permanent.getManaCost().convertedManaCost() == xValue) {
permanent.destroy(source.getId(), game, false);
}