Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- exports.BattleStatuses = {
- // Gem Energy
- raindance: {
- inherit: true,
- durationCallback: function (source, effect) {
- let duration = 5;
- if (source && source.hasItem('damprock')) duration += 3;
- if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
- return duration;
- },
- },
- sunnyday: {
- inherit: true,
- durationCallback: function (source, effect) {
- let duration = 5;
- if (source && source.hasItem('heatrock')) duration += 3;
- if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
- return duration;
- },
- },
- sandstorm: {
- inherit: true,
- durationCallback: function (source, effect) {
- let duration = 5;
- if (source && source.hasItem('smoothrock')) duration += 3;
- if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
- return duration;
- },
- },
- hail: {
- inherit: true,
- durationCallback: function (source, effect) {
- let duration = 5;
- if (source && source.hasItem('icyrock')) duration += 3;
- if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
- return duration;
- },
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement