mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 16:26:15 -05:00
Balanced Hackmons: Ban Intrepid Sword
This commit is contained in:
parent
2b510d050d
commit
bdae9efbc9
|
|
@ -790,10 +790,15 @@ export const Formats: FormatList = [
|
|||
'Arena Trap', 'Contrary', 'Gorilla Tactics', 'Huge Power', 'Illusion', 'Innards Out', 'Libero', 'Magnet Pull', 'Moody',
|
||||
'Neutralizing Gas', 'Parental Bond', 'Protean', 'Pure Power', 'Shadow Tag', 'Stakeout', 'Water Bubble', 'Wonder Guard',
|
||||
],
|
||||
restricted: ['Zacian-Crowned'],
|
||||
onValidateSet(set) {
|
||||
if (set.species === 'Zacian-Crowned' &&
|
||||
(this.dex.toID(set.item) !== 'rustedsword' || this.dex.toID(set.ability) !== 'intrepidsword')) {
|
||||
return [set.species + " is banned."];
|
||||
const ability = this.dex.getAbility(set.ability);
|
||||
if (set.species === 'Zacian-Crowned') {
|
||||
if (this.dex.toID(set.item) !== 'rustedsword' || ability.id !== 'intrepidsword') {
|
||||
return [`${set.species} is banned.`];
|
||||
}
|
||||
} else if (ability.id === 'intrepidsword') {
|
||||
return [`${set.name}'s ability ${ability.name} is banned.`];
|
||||
}
|
||||
},
|
||||
onChangeSet(set) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user