mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Condition simplification.
This commit is contained in:
@@ -204,11 +204,8 @@ public class BoosterGenerator {
|
|||||||
|
|
||||||
boolean foilInThisSlot = hasFoil && (slotType.equals(foilSlot));
|
boolean foilInThisSlot = hasFoil && (slotType.equals(foilSlot));
|
||||||
|
|
||||||
if (foilInThisSlot && !foilAtEndOfPack) {
|
if ((foilInThisSlot && !foilAtEndOfPack)
|
||||||
numCards--;
|
|| (foilAtEndOfPack && hasFoil && slotType.startsWith(BoosterSlots.COMMON))) {
|
||||||
}
|
|
||||||
|
|
||||||
if (foilAtEndOfPack && hasFoil && slotType.startsWith(BoosterSlots.COMMON)) {
|
|
||||||
numCards--;
|
numCards--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user