STABmons: Ban Belly Drum and Shell Smash

This commit is contained in:
The Immortal 2015-12-13 03:28:17 +04:00
parent a0f3594603
commit 1d7c356947

View File

@ -637,7 +637,7 @@ Validator = (function () {
do {
alreadyChecked[template.speciesid] = true;
// STABmons hack to avoid copying all of validateSet to formats
if (format.banlistTable && format.banlistTable['ignorestabmoves'] && move !== 'chatter') {
if (format.banlistTable && format.banlistTable['ignorestabmoves'] && !(move in {'bellydrum':1, 'chatter':1, 'shellsmash':1})) {
let types = template.types;
if (template.species === 'Shaymin') types = ['Grass', 'Flying'];
if (template.baseSpecies === 'Hoopa') types = ['Psychic', 'Ghost', 'Dark'];