Add support for Revival Blessing (#2023)

This commit is contained in:
Hisuian Zoroark
2022-12-01 14:02:58 -05:00
committed by GitHub
parent c6c6eb4044
commit bb3f7c19b9
2 changed files with 47 additions and 6 deletions

View File

@@ -1719,6 +1719,18 @@ export class Battle {
case 'wish':
this.scene.runResidualAnim('wish' as ID, poke);
break;
case 'revivalblessing':
this.scene.runResidualAnim('wish' as ID, poke);
const {siden} = this.parsePokemonId(args[1]);
const side = this.sides[siden];
poke.fainted = false;
poke.status = '';
this.scene.updateSidebar(side);
// Revived while still on the field
if (!side.active[poke.slot]) {
poke.side.replace(poke);
}
break;
}
}
this.scene.runOtherAnim('heal' as ID, [poke]);