From 557c21fd25bb1cce402c21f98d6592ca41e425fc Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Tue, 7 May 2024 01:54:51 +0200 Subject: [PATCH] consistency in return type --- src/battle-scene.ts | 2 +- src/game-mode.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 95cb81fc182..484115db161 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1725,8 +1725,8 @@ export default class BattleScene extends SceneBase { getEnemyModifiersOverride(): Array { // if no override, do nothing - if (!OPP_MODIFIER_OVERRIDE || OPP_MODIFIER_OVERRIDE.length === 0) return; const ret = []; + if (!OPP_MODIFIER_OVERRIDE || OPP_MODIFIER_OVERRIDE.length === 0) return ret; // we loop through all the modifier name given in the override file for (const [index, modifierName] of OPP_MODIFIER_OVERRIDE.entries()) { // if the modifier does not exist, we skip it diff --git a/src/game-mode.ts b/src/game-mode.ts index 6782fbb9b80..e703136b30e 100644 --- a/src/game-mode.ts +++ b/src/game-mode.ts @@ -64,8 +64,8 @@ export class GameMode implements GameModeConfig { getModifierOverride(): Modifier[] { // if no override, do nothing - if (!STARTING_MODIFIER_OVERRIDE || STARTING_MODIFIER_OVERRIDE.length === 0) return; const modifiers: Modifier[] = new Array(); + if (!STARTING_MODIFIER_OVERRIDE || STARTING_MODIFIER_OVERRIDE.length === 0) return modifiers; // we loop through all the modifier name given in the override file for (const [index, modifierName] of STARTING_MODIFIER_OVERRIDE.entries()) { // if the modifier does not exist, we skip it