Random Battle: Fix Genesect formes (#4821)

This commit is contained in:
Kevin Lau
2018-08-20 04:11:30 -07:00
committed by The Immortal
parent b568a829ac
commit e44eb16213
2 changed files with 2 additions and 2 deletions

View File

@@ -1131,7 +1131,7 @@ class RandomTeams extends Dex.ModdedDex {
(hasAbility['Stance Change'] && !counter.setupType && movePool.includes('kingsshield')) ||
(movePool.includes('technoblast') || template.requiredMove && movePool.includes(toId(template.requiredMove)))))) {
// Reject Status or non-STAB
if (!isSetup && !move.weather && moveid !== 'judgment' && moveid !== 'rest' && moveid !== 'sleeptalk') {
if (!isSetup && !move.weather && moveid !== 'judgment' && moveid !== 'rest' && moveid !== 'sleeptalk' && moveid !== 'technoblast') {
if (move.category === 'Status' || !hasType[move.type] || move.selfSwitch || move.basePower && move.basePower < 40 && !move.multihit) rejected = true;
}
}

View File

@@ -535,7 +535,7 @@ class RandomGen6Teams extends RandomTeams {
(hasAbility['Stance Change'] && !counter.setupType && movePool.includes('kingsshield')) ||
(movePool.includes('technoblast') || template.requiredMove && movePool.includes(toId(template.requiredMove)))))) {
// Reject Status or non-STAB
if (!isSetup && !move.weather && moveid !== 'judgment' && moveid !== 'rest' && moveid !== 'sleeptalk') {
if (!isSetup && !move.weather && moveid !== 'judgment' && moveid !== 'rest' && moveid !== 'sleeptalk' && moveid !== 'technoblast') {
if (move.category === 'Status' || !hasType[move.type] || move.selfSwitch || move.basePower && move.basePower < 40 && !move.multihit) rejected = true;
}
}