mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
Fixed bolt beak condition to be marginally less jank
This commit is contained in:
parent
15a762d2c5
commit
c31b73e964
@ -4041,8 +4041,7 @@ export class FirstAttackDoublePowerAttr extends VariablePowerAttr {
|
|||||||
* @returns Whether the attribute was successfully applied
|
* @returns Whether the attribute was successfully applied
|
||||||
*/
|
*/
|
||||||
apply(_user: Pokemon, target: Pokemon, move: Move, args: [NumberHolder]): boolean {
|
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 (target.turnData.acted) {
|
||||||
if (lastMove?.turn === globalScene.currentBattle.turn) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user