Update move.ts

This commit is contained in:
Bertie690 2025-07-12 13:28:26 +02:00 committed by GitHub
parent d614588783
commit 4fd44e8029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1969,7 +1969,7 @@ export class HealAttr extends MoveEffectAttr {
return Math.round(score / (1 - this.healRatio / 2));
}
// TODO: Change post move failure rework
// TODO: Change to fail move
override canApply(user: Pokemon, target: Pokemon, _move: Move, _args?: any[]): boolean {
if (!super.canApply(user, target, _move, _args)) {
return false;
@ -2010,6 +2010,7 @@ export class RestAttr extends HealAttr {
globalScene.phaseManager.unshiftNew("PokemonHealPhase", user.getBattlerIndex(), user.getMaxHp(), null)
}
// TODO: change after HealAttr is changed to fail move
override getCondition(): MoveConditionFunc {
return (user, target, move) =>
super.canApply(user, target, move, [])