mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
optimization
This commit is contained in:
parent
c564a3d9cd
commit
4b62ef63ae
@ -184,8 +184,6 @@ export default class Move implements Localizable {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
isRetaliate = () => {};
|
|
||||||
|
|
||||||
addAttr(attr: MoveAttr): this {
|
addAttr(attr: MoveAttr): this {
|
||||||
this.attrs.push(attr);
|
this.attrs.push(attr);
|
||||||
let attrCondition = attr.getCondition();
|
let attrCondition = attr.getCondition();
|
||||||
@ -6549,9 +6547,9 @@ export function initMoves() {
|
|||||||
.attr(CopyTypeAttr),
|
.attr(CopyTypeAttr),
|
||||||
new AttackMove(Moves.RETALIATE, Type.NORMAL, MoveCategory.PHYSICAL, 70, 100, 5, -1, 0, 5)
|
new AttackMove(Moves.RETALIATE, Type.NORMAL, MoveCategory.PHYSICAL, 70, 100, 5, -1, 0, 5)
|
||||||
.attr(MovePowerMultiplierAttr, (user, target, move) => (
|
.attr(MovePowerMultiplierAttr, (user, target, move) => (
|
||||||
user.scene.currentBattle.turn - user.scene.currentBattle.playerFaintsHistory.slice(-1)[0].turn === 1 &&
|
user.scene.currentBattle.turn - user.scene.currentBattle.playerFaintsHistory.at(-1).turn === 1 &&
|
||||||
user instanceof PlayerPokemon ||
|
user instanceof PlayerPokemon ||
|
||||||
user.scene.currentBattle.turn - user.scene.currentBattle.enemyFaintsHistory.slice(-1)[0].turn === 1 &&
|
user.scene.currentBattle.turn - user.scene.currentBattle.enemyFaintsHistory.at(-1).turn === 1 &&
|
||||||
user instanceof EnemyPokemon) ? 2 : 1),
|
user instanceof EnemyPokemon) ? 2 : 1),
|
||||||
new AttackMove(Moves.FINAL_GAMBIT, Type.FIGHTING, MoveCategory.SPECIAL, -1, 100, 5, -1, 0, 5)
|
new AttackMove(Moves.FINAL_GAMBIT, Type.FIGHTING, MoveCategory.SPECIAL, -1, 100, 5, -1, 0, 5)
|
||||||
.attr(UserHpDamageAttr)
|
.attr(UserHpDamageAttr)
|
||||||
|
Loading…
Reference in New Issue
Block a user