- Condition simplification.

This commit is contained in:
Agetian
2017-07-18 10:12:50 +00:00
parent e7359573f2
commit 2abc34a93e

View File

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