Update src/field/pokemon.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
geeilhan 2024-11-04 10:05:45 +01:00 committed by GitHub
parent 37f2679ddb
commit 8393cb484e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,11 +352,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
return challengeAllowed.value;
}
/**
* Checks if the Pokemon is allowed to be in battle and if it is on the field
* @param onField overrides if this Pokemon is on the field or not
* @returns returns false if there is no scene otherwise it returns true
*/
isActive(onField?: boolean): boolean {
if (!this.scene) {
return false;