Updated override typo for unimplemented methods

This commit is contained in:
jnotsknab 2025-06-30 16:11:33 -05:00
parent bddd477478
commit 0a2f83c433
2 changed files with 8 additions and 3 deletions

View File

@ -3073,14 +3073,14 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr {
return mon;
}
override canApplyPostSummon(pokemon: Pokemon, _passive: boolean, _simulated: boolean, _args: any[]): boolean {
override canApply({ pokemon }: AbAttrBaseParams): boolean {
const target = this.getTarget(pokemon);
return !!target;
}
override applyPostSummon(pokemon: Pokemon, _passive: boolean, _simulated: boolean, _args: any[]): void {
override apply({ pokemon }: AbAttrBaseParams): void {
globalScene.phaseManager.unshiftNew("PokemonTransformPhase", pokemon.getBattlerIndex(), this.targetIndex, true);
}
}

View File

@ -1056,6 +1056,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
return species;
}
/**
* Getter function that returns whether this {@linkcode Pokemon} is currently transformed into another one
* (such as by the effects of {@linkcode MoveId.TRANSFORM} or {@linkcode AbilityId.IMPOSTER}.
* @returns Whether this Pokemon is currently transformed.
*/
isTransformed(): boolean {
return this.summonData.speciesForm !== null;
}