Advertisement
Langur

Untitled

Feb 16th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* mods/thaalliance/scripts.js */
  2.  
  3. exports.BattleScripts = {
  4.     init: function () {
  5.         this.modData('Pokedex', 'crawdaunt').baseStats = {hp:100,atk:180,def:160,spa:180,spd:130,spe:170};
  6.  
  7.         this.modData('Pokedex', 'rayquaza').baseStats = {hp:85,atk:120,def:75,spa:120,spd:75,spe:115};
  8.         this.modData('Pokedex', 'rayquaza').abilities = {0:"Delta Stream"};
  9.  
  10.         this.modData('Pokedex', 'absolmega').baseStats = {hp:65,atk:150,def:80,spa:125,spd:80,spe:120};
  11.         this.modData('Pokedex', 'absolmega').types = ['Dark', 'Fairy'];
  12.  
  13.         this.modData('Pokedex', 'gourgeist').baseStats = {hp:65,atk:50,def:92,spa:118,spd:75,spe:94};
  14.         this.modData('Pokedex', 'gourgeist').types = ['Grass', 'Fire'];
  15.         this.modData('Pokedex', 'gourgeist').abilities = {0:"Water Absorb"};
  16.  
  17.         this.modData('Pokedex', 'floetteeternalflower').baseStats = {hp:74,atk:35,def:77,spa:135,spd:128,spe:102};
  18.         this.modData('Pokedex', 'floetteeternalflower').abilities = {0:"Fairy Aura"};
  19.  
  20.         this.modData('Pokedex', 'mew').baseStats = {hp:120,atk:120,def:120,spa:120,spd:120,spe:120};
  21.         this.modData('Pokedex', 'mew').types = ['Ghost', 'Fighting'];
  22.         this.modData('Pokedex', 'mew').abilities = {0:"Rebound"};
  23.  
  24.         for (var i in this.data.FormatsData) {
  25.             this.modData('FormatsData', i).unreleasedHidden = false;
  26.         }
  27.     }
  28. };
  29.  
  30. /* mods/thaalliance/abilities.js */
  31.  
  32. exports.BattleAbilities = {
  33.     "fairyaura": {
  34.         inherit: true,
  35.         onModifyMove: function (move) {
  36.             delete move.recoil;
  37.         }
  38.     },
  39.     "zenmode": {
  40.         inherit: true,
  41.         onSwitchIn: function (pokemon) {
  42.             if (pokemon.isActive && pokemon.template.speciesid === 'darmanitan') {
  43.                 pokemon.addVolatile('zenmode');
  44.             }
  45.         }
  46.         onResidual: function () {},
  47.         onModifyAtkPriority: 5,
  48.         onModifyAtk: function (atk, attacker, defender, move) {
  49.             if (move.type === 'Psychic' && attacker.hp <= attacker.maxhp / 3) {
  50.                 return this.chainModify(1.5);
  51.             }
  52.         },
  53.         onModifySpAPriority: 5,
  54.         onModifySpA: function (atk, attacker, defender, move) {
  55.             if (move.type === 'Psychic' && attacker.hp <= attacker.maxhp / 3) {
  56.                 return this.chainModify(1.5);
  57.             }
  58.         }
  59.     }
  60. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement