mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
[Bug] Fixed that a single voucher pull will always be common (#2518)
This commit is contained in:
parent
f84fedd588
commit
ff9528129c
@ -392,7 +392,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
|||||||
// if not, override the egg tier
|
// if not, override the egg tier
|
||||||
if (i === pullCount) {
|
if (i === pullCount) {
|
||||||
const guaranteedEggTier = this.getGuaranteedEggTierFromPullCount(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;
|
eggOptions.tier = guaranteedEggTier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user