Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config/formats.js
- -----------------------------------------------------------------------------------------------------------------------------------
- {
- name: "Best Metagame Ever",
- section: "Other Metagames",
- ruleset: ['Pokemon', 'Ability Clause', '-ate Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod'],
- banlist: ['Arena Trap', 'Huge Power', 'Parental Bond', 'Pure Power', 'Shadow Tag', 'Wonder Guard', 'Assist', 'Chatter'],
- onBeforeMove: function (pokemon, target, move) {
- if (pokemon.baseTemplate.species === 'Raichu') { //Raichu sucks
- this.add('-message', 'Raichu sucks eggs. Pikachu is master race.');
- this.win(target.side);
- return null;
- } else if (target.baseTemplate.species === 'Raichu') {
- this.add('-message', 'Raichu sucks eggs. Pikachu is master race.');
- this.win(pokemon.side);
- return null;
- }
- },
- validateSet: function (set) {
- var problems = [];
- var thing = set.name;
- if (!thing) var thing = set.species;
- if (set.species !== 'Pikachu' && set.species !== 'Raichu') problems.push('One of your Pokemon (' + thing + ') isn\'t the best Pokemon ever [Pikachu].');
- if ((set.item !== 'Eviolite' && set.item !== 'Light Ball') && set.species === 'Pikachu') problems.push('One of your Pikachu (' + thing + ') isn\'t holding one of the best items ever [Light Ball or Eviolite].');
- if (set.moves) {
- for (var i = 0; i < set.moves.length; i++) {
- var move = this.getMove(set.moves[i]);
- if (move.type === 'Ground') problems.push(move.name + ' sucks. I am therefore intervening to prevent you from running it.');
- }
- }
- return problems;
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment