dtalley11

elementalist code

May 17th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     "elementalist": {
  2.         desc: "This Pokemon's Fire-type, Electric-type and Water-type attacks receive a 50% boost in power. (STAB)",
  3.         shortDesc: "Gives STAB to Fire, Electric and Water types.",
  4.         onModifyAtkPriority: 5,
  5.         onModifyAtk: function (atk, attacker, defender, move) {
  6.             if (move.type === 'Fire' || move.type === 'Water' ||  move.type === 'Electric') { // If move type is fire or water or electric
  7.                 this.debug('Elementalist');
  8.                 return this.chainModify(1.5);
  9.             }
  10.         },
  11.         onModifySpAPriority: 5,
  12.         onModifySpA: function (atk, attacker, defender, move) {
  13.             if (move.type === 'Fire' || move.type === 'Water' ||  move.type === 'Electric') { // If move type is fire or water or electric
  14.                 this.debug('Elementalist');
  15.                 return this.chainModify(1.5);
  16.             }
  17.         },
  18.         id: "elementalist",
  19.         name: "Elementalist",
  20.         rating: 2,
  21.         num: -10
  22.     },
Advertisement
Add Comment
Please, Sign In to add comment