Tooltips: Don't skip 1.2x ability boosts for normal type moves (#922)

This commit is contained in:
asgdf
2017-05-17 09:27:13 +02:00
committed by Guangcong Luo
parent 9fd0b58b37
commit b388ff5f15

View File

@@ -1128,14 +1128,13 @@ var BattleTooltips = (function () {
abilityBoost = 0.75;
}
} else if (move.type === 'Normal' && move.category !== 'Status' &&
ability in {'Aerilate': 1, 'Galvanize':1, 'Pixilate': 1, 'Refrigerate': 1} &&
!(move.id in {'naturalgift': 1, 'struggle': 1} ||
move.id === 'weatherball' && thereIsWeather ||
move.id === 'multiattack' && item.onMemory ||
move.id === 'judgment' && item.onPlate ||
move.id === 'technoblast' && item.onDrive)) {
if (ability in {'Aerilate': 1, 'Galvanize':1, 'Pixilate': 1, 'Refrigerate': 1}) {
abilityBoost = (this.battle.gen > 6 ? 1.2 : 1.3);
}
abilityBoost = (this.battle.gen > 6 ? 1.2 : 1.3);
} else if ((ability === 'Iron Fist' && move.flags['punch']) ||
(ability === 'Reckless' && (move.recoil || move.hasCustomRecoil)) ||
(ability === 'Normalize' && this.battle.gen > 6)) {