mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
code tweak in CardFactoryUtil
This commit is contained in:
@@ -117,7 +117,6 @@ public class CardFactory implements NewConstants {
|
||||
private void readCards(File file) {
|
||||
map.clear();
|
||||
|
||||
//ReadCard read = new ReadCard(ForgeProps.getFile(CARDS));
|
||||
ReadCard read = new ReadCard(ForgeProps.getFile(CARDSFOLDER));
|
||||
try {
|
||||
read.run();
|
||||
|
||||
@@ -2063,8 +2063,7 @@ public class CardFactoryUtil {
|
||||
}
|
||||
|
||||
public static boolean multipleControlled(Card c) {
|
||||
PlayerZone play = AllZone.getZone(c);
|
||||
CardList list = new CardList(play.getCards());
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(c.getController());
|
||||
list.remove(c);
|
||||
|
||||
return list.containsName(c.getName());
|
||||
|
||||
Reference in New Issue
Block a user