mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 15:02:16 +02:00
Updated override typo for unimplemented methods
This commit is contained in:
parent
bddd477478
commit
0a2f83c433
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user