mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
Fix crash on iOS
This commit is contained in:
parent
532a27016b
commit
d7a81925b0
@ -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);
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user