Allow status to be cured silently (#759)

This commit is contained in:
urkerab
2016-08-16 23:01:05 +01:00
committed by Marty-D
parent 773f3b3fea
commit 8fa0a7b0d5

View File

@@ -4135,7 +4135,9 @@ var Battle = (function () {
var ofpoke = this.getPokemon(kwargs.of);
poke.status = '';
if (effect.id) switch (effect.id) {
if (kwargs.silent) {
// do nothing
} else if (effect.id) switch (effect.id) {
case 'psychoshift':
actions += '' + poke.getName() + ' moved its status onto ' + ofpoke.getLowerName() + '!';
this.resultAnim(poke, 'Cured', 'good');