diff --git a/src/data/move.ts b/src/data/move.ts index 441dfa777..8b21818fe 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -521,6 +521,10 @@ export class TargetHalfHpDamageAttr extends FixedDamageAttr { return true; } + + getTargetBenefitScore(user: Pokemon, target: Pokemon, move: Move): number { + return target.getHpRatio() > 0.5 ? Math.floor(((target.getHpRatio() - 0.5) * 24) * 12 - 4) : -20; + } } export class MatchHpAttr extends FixedDamageAttr {