diff --git a/src/data/move.ts b/src/data/move.ts index b9162c2130a..c35b0e5fa82 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1844,16 +1844,18 @@ export class HpSplitAttr extends MoveEffectAttr { /** * Attribute used for moves which split the user and the target's offensive raw stats. - * This attribute is used for the move Power Split. + * @extends MoveEffectAttr + * @see {@link apply} */ export class PowerSplitAttr extends MoveEffectAttr { + /** * Applying Power Split to the user and the target. - * @param {Pokemon} user The pokemon using the move. - * @param {Pokemon} target The targeted pokemon of the move. - * @param {Move} move The move used. - * @param {any} args N/A - * @returns {boolean} True if power split is applied successfully. + * @param user The pokemon using the move. {@link Pokemon} + * @param target The targeted pokemon of the move. {@link Pokemon} + * @param move The move used. {@link Move} + * @param args N/A + * @returns True if power split is applied successfully. */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]) : Promise { return new Promise(resolve => { @@ -1882,16 +1884,17 @@ export class PowerSplitAttr extends MoveEffectAttr { /** * Attribute used for moves which split the user and the target's defensive raw stats. - * This attribute is used for the move Guard Split. + * @extends MoveEffectAttr + * @see {@link apply} */ export class GuardSplitAttr extends MoveEffectAttr { /** * Applying Guard Split to the user and the target. - * @param {Pokemon} user The pokemon using the move. - * @param {Pokemon} target The targeted pokemon of the move. - * @param {Move} move The move used. - * @param {any} args N/A - * @returns {boolean} True if power split is applied successfully. + * @param user The pokemon using the move. {@link Pokemon} + * @param target The targeted pokemon of the move. {@link Pokemon} + * @param move The move used. {@link Move} + * @param args N/A + * @returns True if power split is applied successfully. */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise { return new Promise(resolve => { diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 0116ee0fc6b..b8ce9da2b44 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -547,7 +547,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { /** * Returns the value of the specified stat. * @param stat Stat to get the value of. {@link Stat} - * @returns The value of the stat. If the pokemon is already summoned, it uses those values, otherwise uses the base stats. {@link integer} + * @returns The value of the stat. If the pokemon is already summoned, it uses those values, otherwise uses the base stats. */ getStat(stat: Stat): integer { if (!this.summonData) { @@ -1713,9 +1713,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } /** - * Sets a specific stat to a specific value. Used for summon data, while the pokemon is out until the next time it is retrieved. + * Sets a specific stat to a specific value. + * Used for summon data, while the pokemon is out until the next time it is retrieved. * @param stat Stat to change. {@link Stat} - * @param value Amount to set the stat to. {@link integer} + * @param value Amount to set the stat to. */ changeSummonStat(stat: Stat, value: integer) : void { this.summonData.stats[stat] = value;