From 7003d74d1fffe14d19ae932f9c12878a4cb47335 Mon Sep 17 00:00:00 2001 From: Felix Staud Date: Wed, 17 Jul 2024 15:10:50 -0700 Subject: [PATCH] remove redundance from Pokemon.isAllowedInBattle() --- src/field/pokemon.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 279ffeccc42..3221aac18aa 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -274,8 +274,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { * @returns {boolean} True if pokemon is allowed in battle */ isAllowedInBattle(): boolean { - const challengeAllowed = new Utils.BooleanHolder(true); - applyChallenges(this.scene.gameMode, ChallengeType.POKEMON_IN_BATTLE, this, challengeAllowed); return !this.isFainted() && this.isAllowed(); }