Fix Self-Destruct and Explosion not taking type advantage into account
This commit is contained in:
1 parent
c59c5ca413
commit
f0d33c96aa
1 file changed
+1
-1
+1
-1
@@ -634,7 +634,7 @@ export class SacrificialAttr extends MoveEffectAttr {
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user