remove redundance from Pokemon.isAllowedInBattle()

This commit is contained in:
Felix Staud 2024-07-17 15:10:50 -07:00
parent 918320079a
commit 7003d74d1f
1 changed files with 0 additions and 2 deletions

View File

@ -274,8 +274,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
* @returns {boolean} True if pokemon is allowed in battle * @returns {boolean} True if pokemon is allowed in battle
*/ */
isAllowedInBattle(): boolean { isAllowedInBattle(): boolean {
const challengeAllowed = new Utils.BooleanHolder(true);
applyChallenges(this.scene.gameMode, ChallengeType.POKEMON_IN_BATTLE, this, challengeAllowed);
return !this.isFainted() && this.isAllowed(); return !this.isFainted() && this.isAllowed();
} }