[Bug] Fix incorrect move effectiveness (#2757)
* Fix incorrect move effectiveness * Casting variable should be enough
This commit is contained in:
parent
6da5d9d6aa
commit
13b23289d1
|
@ -1155,7 +1155,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
applyPreDefendAbAttrs(MoveImmunityAbAttr, this, source, move, cancelled, typeMultiplier, true);
|
applyPreDefendAbAttrs(MoveImmunityAbAttr, this, source, move, cancelled, typeMultiplier, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (!cancelled.value ? typeMultiplier.value : 0) as TypeDamageMultiplier;
|
return (!cancelled.value ? Number(typeMultiplier.value) : 0) as TypeDamageMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
getAttackTypeEffectiveness(moveType: Type, source?: Pokemon, ignoreStrongWinds: boolean = false): TypeDamageMultiplier {
|
getAttackTypeEffectiveness(moveType: Type, source?: Pokemon, ignoreStrongWinds: boolean = false): TypeDamageMultiplier {
|
||||||
|
|
Loading…
Reference in New Issue