Add Super Fang target benefit score

pull/68/head
Flashfyre 2024-04-09 11:04:09 -04:00
parent ec51ba7417
commit 5ee95bcd17
1 changed files with 4 additions and 0 deletions

View File

@ -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 {