Bosses prefer not to use sacrificial moves

This commit is contained in:
Flashfyre committed 2024-04-05 12:36:09 -04:00
1 parent a3fcf3f3d2
commit d88871a86b
1 file changed
+2
+2
View File
@@ -664,6 +664,8 @@ export class SacrificialAttr extends MoveEffectAttr {
}
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
if (user.isBoss())
return -20;
return Math.ceil(((1 - user.getHpRatio()) * 10 - 10) * (target.getAttackTypeEffectiveness(move.type) - 0.5));
}
}