Pikachuun

?

Jul 27th, 2015
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.BattleScripts = {
  2.     init: function () {
  3.         var ls = [];
  4.         var str = '';
  5.         var l = false;
  6.         for (var p in this.data.Learnsets) {
  7.             for (var m in this.data.Learnsets[p].learnset) {
  8.                 ls = this.data.Learnsets[p].learnset[m];
  9.                 l = false;
  10.                 for (var pos = 0; pos < ls.length; pos++) {
  11.                     str = ls[pos];
  12.                     if (str[1] === 'L' && !l) l = true;
  13.                 }
  14.                 if (!l) this.modData('Learnsets', p).learnset[m] = [];
  15.             }
  16.         }
  17.     }
  18. };
Advertisement
Add Comment
Please, Sign In to add comment