Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.BattleScripts = {
- init: function () {
- var ls = [];
- var str = '';
- var l = false;
- for (var p in this.data.Learnsets) {
- for (var m in this.data.Learnsets[p].learnset) {
- ls = this.data.Learnsets[p].learnset[m];
- l = false;
- for (var pos = 0; pos < ls.length; pos++) {
- str = ls[pos];
- if (str[1] === 'L' && !l) l = true;
- }
- if (!l) this.modData('Learnsets', p).learnset[m] = [];
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment