mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 06:43:02 -05:00
Teambuilder: No Spe EVs if you have Trick Room
This commit is contained in:
@@ -2869,6 +2869,7 @@
|
||||
|
||||
var bulk = physicalBulk + specialBulk;
|
||||
if (bulk < 46000 && stats.spe >= 70) isFast = true;
|
||||
if (hasMove['trickroom']) isFast = false;
|
||||
moveCount['bulk'] = bulk;
|
||||
moveCount['physicalBulk'] = physicalBulk;
|
||||
moveCount['specialBulk'] = specialBulk;
|
||||
@@ -3061,6 +3062,7 @@
|
||||
}
|
||||
var hpDivisibility = 0;
|
||||
var hpShouldBeDivisible = false;
|
||||
var hp = evs['hp'] || 0;
|
||||
stat = this.getStat('hp', null, hp, 1);
|
||||
if ((set.item === 'Leftovers' || set.item === 'Black Sludge') && hasMove['substitute'] && stat !== 404) {
|
||||
hpDivisibility = 4;
|
||||
@@ -3081,7 +3083,6 @@
|
||||
}
|
||||
|
||||
if (hpDivisibility) {
|
||||
var hp = evs['hp'] || 0;
|
||||
while (hp < 252 && evTotal < 508 && !(stat % hpDivisibility) !== hpShouldBeDivisible) {
|
||||
hp += 4;
|
||||
stat = this.getStat('hp', null, hp, 1);
|
||||
|
||||
Reference in New Issue
Block a user