mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
now GameFormat supports "Restricted" cards (ex: power 9 in Vintage)
This commit is contained in:
@@ -65,7 +65,7 @@ public final class GameFormatQuest extends GameFormat {
|
||||
* @param allowSetUnlocks
|
||||
*/
|
||||
public GameFormatQuest(final GameFormat toCopy, boolean allowSetUnlocks) {
|
||||
super(toCopy.getName(), toCopy.getAllowedSetCodes(), toCopy.getBannedCardNames(), toCopy.getIndex());
|
||||
super(toCopy.getName(), toCopy.getAllowedSetCodes(), toCopy.getBannedCardNames(), toCopy.getRestrictedCards(), toCopy.getIndex());
|
||||
allowUnlocks = allowSetUnlocks;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public final class GameFormatQuest extends GameFormat {
|
||||
* @param setCode String, set code.
|
||||
*/
|
||||
public void unlockSet(final String setCode) {
|
||||
if (!canUnlockSets() || this.allowedSetCodes.isEmpty() || this.allowedSetCodes.contains(setCode)) {
|
||||
if (!canUnlockSets() || this.allowedSetCodes_ro.isEmpty() || this.allowedSetCodes_ro.contains(setCode)) {
|
||||
return;
|
||||
}
|
||||
this.allowedSetCodes.add(setCode);
|
||||
|
||||
Reference in New Issue
Block a user