Skip to content

Commit 949ff0c

Browse files
Fix Beat Up using wrong form stat
1 parent 2f0ce9c commit 949ff0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/moves.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1194,9 +1194,9 @@ export const Moves: import('../sim/dex-moves').MoveDataTable = {
11941194
accuracy: 100,
11951195
basePower: 0,
11961196
basePowerCallback(pokemon, target, move) {
1197-
const currentSpecies = move.allies!.shift()!.species;
1198-
const bp = 5 + Math.floor(currentSpecies.baseStats.atk / 10);
1199-
this.debug(`BP for ${currentSpecies.name} hit: ${bp}`);
1197+
const setSpecies = this.dex.species.get(move.allies!.shift()!.set.species);
1198+
const bp = 5 + Math.floor(setSpecies.baseStats.atk / 10);
1199+
this.debug(`BP for ${setSpecies.name} hit: ${bp}`);
12001200
return bp;
12011201
},
12021202
category: "Physical",

0 commit comments

Comments
 (0)