mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[FIX] Fixes issue 294
This commit is contained in:
parent
6f844e0743
commit
6d26ab3f5d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue