Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* config/formats.js */
- {
- name: "Anti-Vaxxers",
- desc: ["All type-based immunities cease to apply."],
- section: "Other Metagames",
- mod: "antivaxxers",
- ruleset: ["OU"],
- },
- /*mods/antivaxxers/typechart.js*/
- 'use strict';
- exports.BattleTypeChart = {
- "Bug": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 2,
- "Fire": 1,
- "Flying": 1,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 2,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 1,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"atk":30, "def":30, "spd":30},
- HPdvs: {"atk":13, "def":13},
- },
- "Dark": {
- damageTaken: {
- "Bug": 1,
- "Dark": 2,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 1,
- "Fighting": 1,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 2,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {},
- },
- "Dragon": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 1,
- "Electric": 2,
- "Fairy": 1,
- "Fighting": 0,
- "Fire": 2,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 0,
- "Ice": 1,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 0,
- "Water": 2,
- },
- HPivs: {"atk":30},
- HPdvs: {"def":14},
- },
- "Electric": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 2,
- "Fairy": 0,
- "Fighting": 0,
- "Fire": 0,
- "Flying": 2,
- "Ghost": 0,
- "Grass": 0,
- "Ground": 1,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 2,
- "Water": 0,
- },
- HPivs: {"spa":30},
- HPdvs: {"atk":14},
- },
- "Fairy": {
- damageTaken: {
- "Bug": 2,
- "Dark": 2,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 2,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 1,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 1,
- "Water": 0,
- },
- },
- "Fighting": {
- damageTaken: {
- "Bug": 2,
- "Dark": 2,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 1,
- "Fighting": 0,
- "Fire": 0,
- "Flying": 1,
- "Ghost": 0,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 1,
- "Rock": 2,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"def":30, "spa":30, "spd":30, "spe":30},
- HPdvs: {"atk":12, "def":12},
- },
- "Fire": {
- damageTaken: {
- "Bug": 2,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 2,
- "Fighting": 0,
- "Fire": 2,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 1,
- "Ice": 2,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 1,
- "Steel": 2,
- "Water": 1,
- },
- HPivs: {"atk":30, "spa":30, "spe":30},
- HPdvs: {"atk":14, "def":12},
- },
- "Flying": {
- damageTaken: {
- "Bug": 2,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 1,
- "Fairy": 0,
- "Fighting": 2,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 0,
- "Ice": 1,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 1,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"hp":30, "atk":30, "def":30, "spa":30, "spd":30},
- HPdvs: {"atk":12, "def":13},
- },
- "Ghost": {
- damageTaken: {
- "Bug": 2,
- "Dark": 1,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 0,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 1,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 2,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"def":30, "spd":30},
- HPdvs: {"atk":13, "def":14},
- },
- "Grass": {
- damageTaken: {
- "Bug": 1,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 2,
- "Fairy": 0,
- "Fighting": 0,
- "Fire": 1,
- "Flying": 1,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 2,
- "Ice": 1,
- "Normal": 0,
- "Poison": 1,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 0,
- "Water": 2,
- },
- HPivs: {"atk":30, "spa":30},
- HPdvs: {"atk":14, "def":14},
- },
- "Ground": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 0,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 1,
- "Ground": 0,
- "Ice": 1,
- "Normal": 0,
- "Poison": 2,
- "Psychic": 0,
- "Rock": 2,
- "Steel": 0,
- "Water": 1,
- },
- HPivs: {"spa":30, "spd":30},
- HPdvs: {"atk":12},
- },
- "Ice": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 1,
- "Fire": 1,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 0,
- "Ground": 0,
- "Ice": 2,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 1,
- "Steel": 1,
- "Water": 0,
- },
- HPivs: {"atk":30, "def":30},
- HPdvs: {"def":13},
- },
- "Normal": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 1,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 0,
- "Water": 0,
- },
- },
- "Poison": {
- damageTaken: {
- "Bug": 2,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 2,
- "Fighting": 2,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 1,
- "Ice": 0,
- "Normal": 0,
- "Poison": 2,
- "Psychic": 1,
- "Rock": 0,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"def":30, "spa":30, "spd":30},
- HPdvs: {"atk":12, "def":14},
- },
- "Psychic": {
- damageTaken: {
- "Bug": 1,
- "Dark": 1,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 2,
- "Fire": 0,
- "Flying": 0,
- "Ghost": 1,
- "Grass": 0,
- "Ground": 0,
- "Ice": 0,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 2,
- "Rock": 0,
- "Steel": 0,
- "Water": 0,
- },
- HPivs: {"atk":30, "spe":30},
- HPdvs: {"def":12},
- },
- "Rock": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 0,
- "Fairy": 0,
- "Fighting": 1,
- "Fire": 2,
- "Flying": 2,
- "Ghost": 0,
- "Grass": 1,
- "Ground": 1,
- "Ice": 0,
- "Normal": 2,
- "Poison": 2,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 1,
- "Water": 1,
- },
- HPivs: {"def":30, "spd":30, "spe":30},
- HPdvs: {"atk":13, "def":12},
- },
- "Steel": {
- damageTaken: {
- "Bug": 2,
- "Dark": 0,
- "Dragon": 2,
- "Electric": 0,
- "Fairy": 2,
- "Fighting": 1,
- "Fire": 1,
- "Flying": 2,
- "Ghost": 0,
- "Grass": 2,
- "Ground": 1,
- "Ice": 2,
- "Normal": 2,
- "Poison": 0,
- "Psychic": 2,
- "Rock": 2,
- "Steel": 2,
- "Water": 0,
- },
- HPivs: {"spd":30},
- HPdvs: {"atk":13},
- },
- "Water": {
- damageTaken: {
- "Bug": 0,
- "Dark": 0,
- "Dragon": 0,
- "Electric": 1,
- "Fairy": 0,
- "Fighting": 0,
- "Fire": 2,
- "Flying": 0,
- "Ghost": 0,
- "Grass": 1,
- "Ground": 0,
- "Ice": 2,
- "Normal": 0,
- "Poison": 0,
- "Psychic": 0,
- "Rock": 0,
- "Steel": 2,
- "Water": 2,
- },
- HPivs: {"atk":30, "def":30, "spa":30},
- HPdvs: {"atk":14, "def":13},
- },
- };
- /*mods/antivaxxers/abilities.js*/
- 'use strict';
- exports.BattleAbilities = {
- "arenatrap": {
- inherit: true,
- onFoeTrapPokemon: function (pokemon) {
- if (!this.isAdjacent(pokemon, this.effectData.target)) return;
- if (pokemon.isGrounded() || pokemon.hasType('Flying')) {
- pokemon.tryTrap(true);
- }
- },
- onFoeMaybeTrapPokemon: function (pokemon, source) {
- if (!source) source = this.effectData.target;
- if (!this.isAdjacent(pokemon, source)) return;
- if (pokemon.isGrounded() || pokemon.hasType('Flying')) {
- pokemon.maybeTrapped = true;
- }
- },
- },
- };
- /*mods/antivaxxers/moves.js*/
- 'use strict';
- exports.BattleMovedex = {
- skydrop: {
- inherit: true,
- onTryHit: function (target, source, move) {
- if (target.fainted) return false;
- if (source.removeVolatile(move.id)) {
- if (target !== source.volatiles['twoturnmove'].source) return false;
- } else {
- if (target.volatiles['substitute'] || target.side === source.side) {
- return false;
- }
- if (target.getWeight() >= 200) {
- this.add('-fail', target, 'move: Sky Drop', '[heavy]');
- return null;
- }
- this.add('-prepare', source, move.name, target);
- source.addVolatile('twoturnmove', target);
- return null;
- }
- },
- },
- spikes: {
- inherit: true,
- effect: {
- // this is a side condition
- onStart: function (side) {
- this.add('-sidestart', side, 'Spikes');
- this.effectData.layers = 1;
- },
- onRestart: function (side) {
- if (this.effectData.layers >= 3) return false;
- this.add('-sidestart', side, 'Spikes');
- this.effectData.layers++;
- },
- onSwitchIn: function (pokemon) {
- if (!pokemon.isGrounded() && !pokemon.hasType('Flying')) return;
- let damageAmounts = [0, 3, 4, 6]; // 1/8, 1/6, 1/4
- this.damage(damageAmounts[this.effectData.layers] * pokemon.maxhp / 24);
- },
- },
- },
- toxicspikes: {
- inherit: true,
- effect: {
- // this is a side condition
- onStart: function (side) {
- this.add('-sidestart', side, 'move: Toxic Spikes');
- this.effectData.layers = 1;
- },
- onRestart: function (side) {
- if (this.effectData.layers >= 2) return false;
- this.add('-sidestart', side, 'move: Toxic Spikes');
- this.effectData.layers++;
- },
- onSwitchIn: function (pokemon) {
- if (!pokemon.isGrounded() && !pokemon.hasType('Flying')) return;
- if (!pokemon.runImmunity('Poison')) return;
- if (pokemon.hasType('Poison')) {
- this.add('-sideend', pokemon.side, 'move: Toxic Spikes', '[of] ' + pokemon);
- pokemon.side.removeSideCondition('toxicspikes');
- } else if (this.effectData.layers >= 2) {
- pokemon.trySetStatus('tox', pokemon.side.foe.active[0]);
- } else {
- pokemon.trySetStatus('psn', pokemon.side.foe.active[0]);
- }
- },
- },
- },
- stickyweb: {
- inherit: true,
- effect: {
- onStart: function (side) {
- this.add('-sidestart', side, 'move: Sticky Web');
- },
- onSwitchIn: function (pokemon) {
- if (!pokemon.isGrounded() && !pokemon.hasType('Flying')) return;
- this.add('-activate', pokemon, 'move: Sticky Web');
- this.boost({spe: -1}, pokemon, pokemon.side.foe.active[0], this.getMove('stickyweb'));
- },
- },
- },
- leechseed: {
- inherit: true,
- onTryHit: function (target) {
- return undefined;
- },
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement