mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Random Doubles Battle: Item Distribution Update
- Removed Trick/Gyro Ball checks as no Pokemon uses that combination. - Reject Life Orb on Pokemon with 55 or less base Speed. - Add a check for slow and strong Regenerator Pokemon to receive Assault Vest, at slightly higher priority than Sitrus Berry.
This commit is contained in:
parent
c1a1ce85df
commit
276f5ff475
|
|
@ -2790,10 +2790,6 @@ exports.BattleScripts = {
|
|||
item = 'Focus Sash';
|
||||
} else if (template.species === 'Unown') {
|
||||
item = 'Choice Specs';
|
||||
} else if (hasMove['trick'] && hasMove['gyroball'] && (ability === 'Levitate' || hasType['Flying'])) {
|
||||
item = 'Macho Brace';
|
||||
} else if (hasMove['trick'] && hasMove['gyroball']) {
|
||||
item = 'Iron Ball';
|
||||
} else if (hasMove['trick'] || hasMove['switcheroo']) {
|
||||
var randomNum = this.random(2);
|
||||
if (counter.Physical >= 3 && (template.baseStats.spe >= 95 || randomNum)) {
|
||||
|
|
@ -2887,9 +2883,9 @@ exports.BattleScripts = {
|
|||
}
|
||||
} else if (ability === 'Marvel Scale' && hasMove['psychoshift']) {
|
||||
item = 'Flame Orb';
|
||||
} else if (counter.Physical >= 4 && !hasMove['fakeout'] && !hasMove['suckerpunch'] && !hasMove['flamecharge'] && !hasMove['rapidspin'] && ability !== 'Sturdy' && ability !== 'Multiscale') {
|
||||
} else if (counter.Physical >= 4 && template.baseStats.spe > 55 && !hasMove['fakeout'] && !hasMove['suckerpunch'] && !hasMove['flamecharge'] && !hasMove['rapidspin'] && ability !== 'Sturdy' && ability !== 'Multiscale') {
|
||||
item = 'Life Orb';
|
||||
} else if (counter.Special >= 4 && !hasMove['eruption'] && !hasMove['waterspout'] && ability !== 'Sturdy') {
|
||||
} else if (counter.Special >= 4 && template.baseStats.spe > 55 && !hasMove['eruption'] && !hasMove['waterspout'] && ability !== 'Sturdy') {
|
||||
item = 'Life Orb';
|
||||
} else if (this.getImmunity('Ground', template) && this.getEffectiveness('Ground', template) >= 2 && ability !== 'Levitate' && !hasMove['magnetrise']) {
|
||||
item = 'Shuca Berry';
|
||||
|
|
@ -2903,6 +2899,8 @@ exports.BattleScripts = {
|
|||
item = 'Chople Berry';
|
||||
} else if (ability === 'Iron Barbs' || ability === 'Rough Skin') {
|
||||
item = 'Rocky Helmet';
|
||||
} else if (counter.Physical + counter.Special >= 4 && ability === 'Regenerator' && template.baseStats[counter.Special >= 2 ? 'atk' : 'spa'] > 99 && template.baseStats.spe <= 80) {
|
||||
item = 'Assault Vest';
|
||||
} else if ((template.baseStats.hp + 75) * (template.baseStats.def + template.baseStats.spd + 175) > 60000 || template.species === 'Skarmory' || template.species === 'Forretress') {
|
||||
// skarmory and forretress get exceptions for their typing
|
||||
item = 'Sitrus Berry';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user