used getMoveType() instead of move.type
This commit is contained in:
parent
f5345c279b
commit
03445dfab4
|
@ -1 +1 @@
|
|||
Subproject commit 5775faa6b3184082df73f6cdb96b253ea7dae3fe
|
||||
Subproject commit d600913dbf1f8b47dae8dccbd8296df78f1c51b5
|
|
@ -4997,7 +4997,7 @@ export class FreezeDryAttr extends VariableMoveTypeMultiplierAttr {
|
|||
|
||||
if (multipleTypes) {
|
||||
const nonWaterType = target.getTypes().filter(type => type !== Type.WATER)[0];
|
||||
const effectivenessAgainstTarget = new Utils.NumberHolder(getTypeDamageMultiplier(move.type, nonWaterType));
|
||||
const effectivenessAgainstTarget = new Utils.NumberHolder(getTypeDamageMultiplier(user.getMoveType(move), nonWaterType));
|
||||
|
||||
applyChallenges(user.scene.gameMode, ChallengeType.TYPE_EFFECTIVENESS, effectivenessAgainstTarget);
|
||||
|
||||
|
|
Loading…
Reference in New Issue