Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------------------------------------------------
- team-validator.js [Place this DIRECTLY BELOW the STABmons hack present there. Use Ctrl/Cmd + F to find it if you don't know where it is.]
- --------------------------------------------------------------------------------------
- // Resmons hack to avoid copying all of validateSet to formats
- if (format.banlistTable && format.banlistTable['ignoreresmoves']) {
- var typet = template.types;
- if (typet[1]) {
- var typep = {types: [typet[0], typet[1]]};
- } else {
- var typep = {types: [typet[0]]};
- }
- var typem = tools.getMove(move).type;
- var notImmune = Tools.getImmunity(typem, typep);
- if (notImmune) {
- var typeMod = Tools.getEffectiveness(typem, typep);
- if (typeMod < 0) {
- return false;
- }
- } else {
- return false;
- }
- }
- --------------------------------------------------------------------------------------
- config/formats.js
- --------------------------------------------------------------------------------------
- {
- name: "Resmons",
- section: "Other Metagames",
- ruleset: ['Pokemon', 'Standard', 'Team Preview', 'Swagger Clause', 'Baton Pass Clause'],
- banlist: ['Uber', 'Soul Dew', 'Gengarite', 'Kangaskhanite', 'Lucarionite', 'Mawilite', 'Ignore Res Moves', 'Shell Smash']
- },
Advertisement
Add Comment
Please, Sign In to add comment