Added moves with a cooldown

This commit is contained in:
dalyjame
2019-06-17 14:41:15 -04:00
parent a475126a3f
commit 908069f2bc
9 changed files with 289 additions and 24 deletions

View File

@@ -41,16 +41,6 @@ confusion:
true
}
}
/*
this.activeTarget = mon;
let damage = this.getDamage(mon, mon, 40);
if (typeof damage !== 'number') throw new Error('Confusion damage not dealt');
mon.takeDamage(damage, mon, mon, /** @type {ActiveMove} */ ({
'id': 'confused',
'effectType': 'Move',
'type': '???'
}));
*/
onBeforeMovePriority: 3
onEnd: msg(s"${mon} snapped out of its confusion.")
onStart: |-
@@ -95,11 +85,6 @@ slp:
msg(s"${mon} woke up!")
onBeforeMovePriority: 10
onBeforeMove: |
/*
if (mon.hasAbility('earlybird')) {
this.intData.time--;
}
*/
self.intData("time") -= 1;
if (self.intData("time") <= 0) {
mon.cureStatus();
@@ -148,6 +133,21 @@ frz:
if (move.flags("defrost")) {
mon.cureStatus()
}
mustrecharge:
duration: 2
id: mustrecharge
name: mustrecharge
num: 0
onBeforeMove: |-
msg(s"${mon} must recharge!")
mon -= self
//mon.removeVolatile('mustrecharge');
//mon.removeVolatile('truant');
false
onBeforeMovePriority: 11
onLockMove: |
"recharge"
psn:
name: 'psn'