mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-13 05:15:17 +00:00
Add Super Fang target benefit score
This commit is contained in:
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…
x
Reference in New Issue
Block a user