Bosses prefer not to use sacrificial moves
parent
a3fcf3f3d2
commit
d88871a86b
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue