From be9d07ab1a2bb43585395da30e94629e2ac5daca Mon Sep 17 00:00:00 2001 From: shayebeadlingkl Date: Sun, 14 Apr 2024 18:25:15 -0400 Subject: [PATCH] fixes targeting --- src/data/move.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 37f63abc2..e4eed04b8 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2790,7 +2790,7 @@ export class NaturePowerAttr extends OverrideMoveEffectAttr { moveId = Moves.ICE_BEAM; break; case Biome.VOLCANO: - moveId = Moves.LAVA_PLUME; + moveId = Moves.FLAMETHROWER; break; case Biome.GRAVEYARD || Biome.RUINS @@ -2828,18 +2828,8 @@ export class NaturePowerAttr extends OverrideMoveEffectAttr { break; } - const moveTargets = getMoveTargets(user, moveId); - if (!moveTargets.targets.length) { - resolve(false); - return; - } - const targets = moveTargets.multiple || moveTargets.targets.length === 1 - ? moveTargets.targets - : moveTargets.targets.indexOf(target.getBattlerIndex()) > -1 - ? [ target.getBattlerIndex() ] - : [ moveTargets.targets[user.randSeedInt(moveTargets.targets.length)] ]; - user.getMoveQueue().push({ move: moveId, targets: targets, ignorePP: true }); - user.scene.unshiftPhase(new MovePhase(user.scene, user, targets, new PokemonMove(moveId, 0, 0, true), true)); + user.getMoveQueue().push({ move: moveId, targets: [target.getBattlerIndex()], ignorePP: true }); + user.scene.unshiftPhase(new MovePhase(user.scene, user, [target.getBattlerIndex()], new PokemonMove(moveId, 0, 0, true), true)); initMoveAnim(moveId).then(() => { loadMoveAnimAssets(user.scene, [ moveId ], true) .then(() => resolve(true));