mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-27 02:32:57 -05:00
Random Battle: Fix Genesect formes (#4821)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user