- A more appropriate fix for BoosterGenerator and newer sets (takes into accounts sets like SOI/EMN).

This commit is contained in:
Agetian
2017-07-18 10:09:19 +00:00
parent 4498602d8b
commit e7359573f2

View File

@@ -204,7 +204,11 @@ public class BoosterGenerator {
boolean foilInThisSlot = hasFoil && (slotType.equals(foilSlot));
if (foilInThisSlot) {
if (foilInThisSlot && !foilAtEndOfPack) {
numCards--;
}
if (foilAtEndOfPack && hasFoil && slotType.startsWith(BoosterSlots.COMMON)) {
numCards--;
}
@@ -471,4 +475,4 @@ public class BoosterGenerator {
}
}
}