mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
- Condition simplification.
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user