code tweak in CardFactoryUtil

This commit is contained in:
jendave
2011-08-07 01:11:46 +00:00
parent 6bd0cc7820
commit f81eb76ede
2 changed files with 1 additions and 3 deletions

View File

@@ -117,7 +117,6 @@ public class CardFactory implements NewConstants {
private void readCards(File file) { private void readCards(File file) {
map.clear(); map.clear();
//ReadCard read = new ReadCard(ForgeProps.getFile(CARDS));
ReadCard read = new ReadCard(ForgeProps.getFile(CARDSFOLDER)); ReadCard read = new ReadCard(ForgeProps.getFile(CARDSFOLDER));
try { try {
read.run(); read.run();

View File

@@ -2063,8 +2063,7 @@ public class CardFactoryUtil {
} }
public static boolean multipleControlled(Card c) { public static boolean multipleControlled(Card c) {
PlayerZone play = AllZone.getZone(c); CardList list = AllZoneUtil.getPlayerCardsInPlay(c.getController());
CardList list = new CardList(play.getCards());
list.remove(c); list.remove(c);
return list.containsName(c.getName()); return list.containsName(c.getName());