mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Random Battle: Item updates
- Prevent Life Orb with 2 attacks + Rapid Spin - Add Sharp Beak Talonflame
This commit is contained in:
parent
ea48c9d4d4
commit
933cfca654
|
|
@ -1838,7 +1838,7 @@ exports.BattleScripts = {
|
|||
item = (!!counter['ate'] || (hasMove['suckerpunch'] && !hasType['Dark'])) ? 'Life Orb' : 'Expert Belt';
|
||||
} else if (counter.Physical + counter.Special >= 3 && !!counter['speedsetup'] && template.baseStats.hp + template.baseStats.def + template.baseStats.spd >= 300) {
|
||||
item = 'Weakness Policy';
|
||||
} else if (counter.Physical + counter.Special >= 3 && ability !== 'Sturdy' && !hasMove['dragontail']) {
|
||||
} else if (counter.Physical + counter.Special >= 3 && ability !== 'Sturdy' && !hasMove['dragontail'] && !hasMove['rapidspin']) {
|
||||
item = (template.baseStats.hp + template.baseStats.def + template.baseStats.spd < 285 || !!counter['speedsetup'] || hasMove['trickroom']) ? 'Life Orb' : 'Leftovers';
|
||||
} else if (template.species === 'Palkia' && (hasMove['dracometeor'] || hasMove['spacialrend']) && hasMove['hydropump']) {
|
||||
item = 'Lustrous Orb';
|
||||
|
|
@ -1852,6 +1852,8 @@ exports.BattleScripts = {
|
|||
item = 'Custap Berry';
|
||||
} else if (hasType['Poison']) {
|
||||
item = 'Black Sludge';
|
||||
} else if (ability === 'Gale Wings' && hasMove['bravebird']) {
|
||||
item = 'Sharp Beak';
|
||||
} else if (this.getEffectiveness('Rock', template) >= 1 || hasMove['dragontail']) {
|
||||
item = 'Leftovers';
|
||||
} else if (this.getImmunity('Ground', template) && this.getEffectiveness('Ground', template) >= 1 && ability !== 'Levitate' && ability !== 'Solid Rock' && !hasMove['magnetrise'] && !hasMove['sleeptalk']) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user