Remove Torment volatile when Dynamaxing

This commit is contained in:
Marty-D 2020-02-23 17:45:16 -05:00 committed by GitHub
parent bd262b726c
commit 795ce777ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -727,6 +727,10 @@ let BattleStatuses = {
onStart(pokemon) {
pokemon.removeVolatile('substitute');
if (pokemon.illusion) this.singleEvent('End', this.dex.getAbility('Illusion'), pokemon.abilityData, pokemon);
if (pokemon.volatiles['torment']) {
delete pokemon.volatiles['torment'];
this.add('-end', pokemon, 'Torment', '[silent]');
}
this.add('-start', pokemon, 'Dynamax');
if (pokemon.canGigantamax) this.add('-formechange', pokemon, pokemon.canGigantamax);
if (pokemon.species === 'Shedinja') return;