replacing CardList calls with iterables where possible

This commit is contained in:
Maxmtg
2012-10-01 21:44:45 +00:00
parent 1e75526507
commit 64a43d29e6
26 changed files with 85 additions and 89 deletions

View File

@@ -22,6 +22,7 @@ import java.util.Random;
import forge.AllZone;
import forge.Card;
import forge.CardList;
import forge.CardListUtil;
import forge.Counters;
import forge.card.abilityfactory.AbilityFactory;
import forge.card.mana.ManaCost;
@@ -77,7 +78,7 @@ public class CostUtil {
return false;
}
CardList auras = new CardList(source.getEnchantedBy());
if (!auras.getController(source.getController()).isEmpty()) {
if (!CardListUtil.filterControlledBy(auras, source.getController()).isEmpty()) {
return false;
}
continue;