diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 48fbe135cb9..af4ce17e139 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -332,8 +332,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.scene.cachedFetch(`./images/pokemon/variant/${useExpSprite ? 'exp/' : ''}${battleSpritePath}.json`). then(res => { // Prevent the JSON from processing if it failed to load - if (res.status === 404) { - console.error(`Could not load ${res.url}!`) + if (!res.ok) { + console.error(`Could not load ${res.url}!`); return; } res.json()