[Bug] Fixed that a single voucher pull will always be common (#2518)

This commit is contained in:
sirzento 2024-06-22 18:39:35 +02:00 committed by GitHub
parent f84fedd588
commit ff9528129c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
// if not, override the egg tier
if (i === pullCount) {
const guaranteedEggTier = this.getGuaranteedEggTierFromPullCount(pullCount);
if (!eggs.some(egg => egg.tier >= guaranteedEggTier)) {
if (!eggs.some(egg => egg.tier >= guaranteedEggTier) && guaranteedEggTier !== EggTier.COMMON) {
eggOptions.tier = guaranteedEggTier;
}
}