Add Super Fang target benefit score
parent
ec51ba7417
commit
5ee95bcd17
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue