mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-01 13:47:05 +00:00
remove redundance from Pokemon.isAllowedInBattle()
This commit is contained in:
parent
918320079a
commit
7003d74d1f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user