Fix crash on iOS

This commit is contained in:
Flashfyre 2024-02-28 13:01:38 -05:00
parent 532a27016b
commit d7a81925b0
2 changed files with 2 additions and 2 deletions

View File

@ -1224,7 +1224,7 @@ export default class BattleScene extends Phaser.Scene {
}
} else
return;
if (inputSuccess && this.enableVibration)
if (inputSuccess && this.enableVibration && typeof navigator.vibrate !== 'undefined')
navigator.vibrate(vibrationLength || 10);
this.blockInput = true;
this.time.delayedCall(Utils.fixedInt(250), () => this.blockInput = false);

View File

@ -986,7 +986,7 @@ const modifierPool = {
new WeightedModifierType(modifierTypes.EXP_BALANCE, 1),
new WeightedModifierType(modifierTypes.FORM_CHANGE_ITEM, 1),
new WeightedModifierType(modifierTypes.REVERSE_DNA_SPLICERS, (party: Pokemon[]) => party[0].scene.gameMode !== GameMode.SPLICED_ENDLESS && party.filter(p => p.fusionSpecies).length ? 3 : 0),
new WeightedModifierType(modifierTypes.VOUCHER, 1),
new WeightedModifierType(modifierTypes.VOUCHER, 3),
].map(m => { m.setTier(ModifierTier.ULTRA); return m; }),
[ModifierTier.MASTER]: [
new WeightedModifierType(modifierTypes.MASTER_BALL, 32),