Advertisement
sparkychild

Untitled

May 25th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "nothingspecial": {
  2. shortDesc: "it's really nothing special",
  3. // Primordial Sea
  4. onStart: function (source) {
  5. this.setWeather('primordialsea');
  6. },
  7. onAnySetWeather: function (target, source, weather) {
  8. if (this.getWeather().id === 'primordialsea' && !(weather.id in {desolateland:1, primordialsea:1, deltastream:1})) return false;
  9. },
  10. onEnd: function (pokemon) {
  11. if (this.weatherData.source !== pokemon) return;
  12. for (let i = 0; i < this.sides.length; i++) {
  13. for (let j = 0; j < this.sides[i].active.length; j++) {
  14. let target = this.sides[i].active[j];
  15. if (target === pokemon) continue;
  16. if (target && target.hp && target.hasAbility('primordialsea')) {
  17. this.weatherData.source = target;
  18. return;
  19. }
  20. }
  21. }
  22. this.clearWeather();
  23. },
  24. //magic guard
  25. onDamage: function (damage, target, source, effect) {
  26. if (effect.effectType !== 'Move') {
  27. return false;
  28. }
  29. },
  30. // Swift Swim
  31. onModifySpe: function (spe, pokemon) {
  32. if (this.isWeather(['raindance', 'primordialsea'])) {
  33. return this.chainModify(2);
  34. }
  35. },
  36. //Fur Coat
  37. onModifyDefPriority: 6,
  38. onModifyDef: function (def) {
  39. return this.chainModify(2);
  40. },
  41. //Special Fur Coat
  42. onModifySpDPriority: 6,
  43. onModifySpD: function (def) {
  44. return this.chainModify(2);
  45. },
  46. //Special Huge Power
  47. onModifySpaPriority: 6,
  48. onModifySpa: function (Spa) {
  49. return this.chainModify(2);
  50. },
  51. id: "nothingspecial",
  52. name: "Nothing Special",
  53. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement