[Bug] Fixed getAttackMoveEffectiveness (#2006)
This commit is contained in:
parent
10ffe04274
commit
c77508aef3
|
@ -1085,6 +1085,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||
const typeless = move.hasAttr(TypelessAttr);
|
||||
const typeMultiplier = new Utils.NumberHolder(this.getAttackTypeEffectiveness(move.type, source));
|
||||
const cancelled = new Utils.BooleanHolder(false);
|
||||
applyMoveAttrs(VariableMoveTypeMultiplierAttr, source, this, move, typeMultiplier);
|
||||
if (!typeless) {
|
||||
applyPreDefendAbAttrs(TypeImmunityAbAttr, this, source, move, cancelled, typeMultiplier, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue