Fix Self-Destruct and Explosion not taking type advantage into account

pull/20/head
Flashfyre 2024-03-29 13:47:40 -04:00
parent c59c5ca413
commit f0d33c96aa
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ export class SacrificialAttr extends MoveEffectAttr {
} }
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer { getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
return Math.ceil((1 - user.getHpRatio()) * 10) - 10; return Math.ceil(((1 - user.getHpRatio()) * 10 - 10) * (target.getAttackTypeEffectiveness(move.type) - 0.5));
} }
} }