Fix Self-Destruct and Explosion not taking type advantage into account
This commit is contained in:
parent
c59c5ca413
commit
f0d33c96aa
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue