Fixed bolt beak condition to be marginally less jank

This commit is contained in:
Bertie690 2025-05-19 17:47:20 -04:00
parent 15a762d2c5
commit c31b73e964

View File

@ -4041,8 +4041,7 @@ export class FirstAttackDoublePowerAttr extends VariablePowerAttr {
* @returns Whether the attribute was successfully applied
*/
apply(_user: Pokemon, target: Pokemon, move: Move, args: [NumberHolder]): boolean {
const lastMove: TurnMove | undefined = target.getLastXMoves()[0]; // undefined needed as array might be empty
if (lastMove?.turn === globalScene.currentBattle.turn) {
if (target.turnData.acted) {
return false;
}