From 5ee95bcd174e9a0976997370f7841b9df9280d88 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 9 Apr 2024 11:04:09 -0400 Subject: [PATCH] Add Super Fang target benefit score --- src/data/move.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 {