Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "nothingspecial": {
- shortDesc: "it's really nothing special",
- // Primordial Sea
- onStart: function (source) {
- this.setWeather('primordialsea');
- },
- onAnySetWeather: function (target, source, weather) {
- if (this.getWeather().id === 'primordialsea' && !(weather.id in {desolateland:1, primordialsea:1, deltastream:1})) return false;
- },
- onEnd: function (pokemon) {
- if (this.weatherData.source !== pokemon) return;
- for (let i = 0; i < this.sides.length; i++) {
- for (let j = 0; j < this.sides[i].active.length; j++) {
- let target = this.sides[i].active[j];
- if (target === pokemon) continue;
- if (target && target.hp && target.hasAbility('primordialsea')) {
- this.weatherData.source = target;
- return;
- }
- }
- }
- this.clearWeather();
- },
- //magic guard
- onDamage: function (damage, target, source, effect) {
- if (effect.effectType !== 'Move') {
- return false;
- }
- },
- // Swift Swim
- onModifySpe: function (spe, pokemon) {
- if (this.isWeather(['raindance', 'primordialsea'])) {
- return this.chainModify(2);
- }
- },
- //Fur Coat
- onModifyDefPriority: 6,
- onModifyDef: function (def) {
- return this.chainModify(2);
- },
- //Special Fur Coat
- onModifySpDPriority: 6,
- onModifySpD: function (def) {
- return this.chainModify(2);
- },
- //Special Huge Power
- onModifySpaPriority: 6,
- onModifySpa: function (Spa) {
- return this.chainModify(2);
- },
- id: "nothingspecial",
- name: "Nothing Special",
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement