From d88871a86b9550044a2563590c880a3a36451f32 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 5 Apr 2024 12:36:09 -0400 Subject: [PATCH] Bosses prefer not to use sacrificial moves --- src/data/move.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index 63af377ac..ae6a2e658 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -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)); } }