Created
February 4, 2016 00:37
-
-
Save forsureitsme/4fb8ecd3aa66b055a9a8 to your computer and use it in GitHub Desktop.
Other Metagame - Type Exchange
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name: "Type Exchange", | |
desc: [ | |
"• <a href=\"http://www.smogon.com/forums/threads/type-exchange.3556479/\">Type Exchange Metagame Discussion</a>", | |
"• <a href=\"http://www.smogon.com/forums/threads/type-exchange.3556479/page-2#post-6547201/\">Gothitelle & Gothorita Quick Ban</a>" | |
], | |
section: "Other Metagames", | |
ruleset: [/*'OU',*/ 'Pokemon', 'Standard', 'Team Preview', 'Swagger Clause', 'Baton Pass Clause'], | |
banlist: ['Uber', 'Soul Dew', 'Gengarite', 'Kangaskhanite', 'Lucarionite', /*'Shadow Tag',*/ 'Gothitelle', 'Gothorita'], | |
onBegin: function () { | |
[this.p1.pokemon,this.p2.pokemon].forEach(function(pokemons) { | |
let last_pokemon = { | |
types: pokemons[pokemons.length-1].types, | |
typesData: pokemons[pokemons.length-1].typesData, | |
}; | |
for (let i = pokemons.length-1; i > 0; i--) { | |
pokemons[i].types = pokemons[i-1].types; | |
pokemons[i].typesData = pokemons[i-1].typesData; | |
} | |
pokemons[0].types = last_pokemon.types; | |
pokemons[0].typesData = last_pokemon.typesData; | |
}) | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment