Skip to content

Instantly share code, notes, and snippets.

@forsureitsme
Created February 4, 2016 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forsureitsme/4fb8ecd3aa66b055a9a8 to your computer and use it in GitHub Desktop.
Save forsureitsme/4fb8ecd3aa66b055a9a8 to your computer and use it in GitHub Desktop.
Other Metagame - Type Exchange
{
name: "Type Exchange",
desc: [
"&bullet; <a href=\"http://www.smogon.com/forums/threads/type-exchange.3556479/\">Type Exchange Metagame Discussion</a>",
"&bullet; <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