mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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) {
|
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();
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user