From fa463b77db8c4e83186e0174e7cc6643854b06c3 Mon Sep 17 00:00:00 2001 From: lucfd <83493765+lucfd@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:29:05 -0400 Subject: [PATCH] Implements Stakeout & Analytic (#292) * implemented stakeout * implemented analytic --- src/data/ability.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index e129bf8ec..681fff651 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -19,6 +19,7 @@ import { TerrainType } from "./terrain"; import { SpeciesFormChangeManualTrigger } from "./pokemon-forms"; import { Abilities } from "./enums/abilities"; import i18next, { Localizable } from "#app/plugins/i18n.js"; +import { Command } from "../ui/command-ui-handler"; export class Ability implements Localizable { public id: Abilities; @@ -2858,7 +2859,7 @@ export function initAbilities() { .ignorable() .unimplemented(), new Ability(Abilities.ANALYTIC, 5) - .unimplemented(), + .attr(MovePowerBoostAbAttr, (user, target, move) => !!target.getLastXMoves(1).find(m => m.turn === target.scene.currentBattle.turn) || user.scene.currentBattle.turnCommands[target.getBattlerIndex()].command !== Command.FIGHT, 1.3), new Ability(Abilities.ILLUSION, 5) .attr(UncopiableAbilityAbAttr) .attr(UnswappableAbilityAbAttr) @@ -3004,7 +3005,7 @@ export function initAbilities() { .attr(NoFusionAbilityAbAttr) .partial(), new Ability(Abilities.STAKEOUT, 7) - .unimplemented(), + .attr(MovePowerBoostAbAttr, (user, target, move) => user.scene.currentBattle.turnCommands[target.getBattlerIndex()].command === Command.POKEMON, 2), new Ability(Abilities.WATER_BUBBLE, 7) .attr(ReceivedTypeDamageMultiplierAbAttr, Type.FIRE, 0.5) .attr(MoveTypePowerBoostAbAttr, Type.WATER, 1)