Random Battle: Fix Mega Gardevoir

This commit is contained in:
The Immortal 2015-12-05 01:07:49 +04:00
parent 2fd4e619a7
commit 6729fa0c80

View File

@ -1534,7 +1534,7 @@ exports.BattleScripts = {
(hasType['Dragon'] && !counter['Dragon'] && !hasAbility['Aerilate'] && !hasAbility['Pixilate'] && !hasMove['rest'] && !hasMove['sleeptalk']) ||
(hasType['Fire'] && !counter['Fire']) ||
(hasType['Ground'] && !counter['Ground'] && (counter.setupType || counter['speedsetup'])) ||
(hasType['Psychic'] && !hasType['Flying'] && !!counter['Psychic'] && template.types.length > 1 && counter.stab < 2) ||
(hasType['Psychic'] && !!counter['Psychic'] && !hasType['Flying'] && !hasAbility['Pixilate'] && template.types.length > 1 && counter.stab < 2) ||
(hasMove['raindance'] && hasType['Water'] && !counter['Water']) ||
(movePool.indexOf('technoblast') >= 0 || template.requiredMove && movePool.indexOf(toId(template.requiredMove)) >= 0)) &&
(counter['physicalsetup'] + counter['specialsetup'] < 2 && (!counter.setupType || counter.setupType === 'Mixed' || (move.category !== counter.setupType && move.category !== 'Status') || counter[counter.setupType] + counter.Status > 3))) {