Change Unnerve to on-summon message

This commit is contained in:
DeviPotato 2024-04-25 02:26:26 -07:00
parent 382f1a8d78
commit bfcd8b4c40
3 changed files with 3 additions and 3 deletions

View File

@ -2802,7 +2802,8 @@ export function initAbilities() {
.attr(StatChangeMultiplierAbAttr, -1)
.ignorable(),
new Ability(Abilities.UNNERVE, 5)
.attr(PreventBerryUseAbAttr),
.attr(PreventBerryUseAbAttr)
.attr(PostSummonMessageAbAttr, (pokemon: Pokemon) => getPokemonMessage(pokemon, ' prevents eating berries!')),
new Ability(Abilities.DEFIANT, 5)
.attr(PostStatChangeStatChangeAbAttr, (target, statsChanged, levels) => levels < 0, [BattleStat.ATK], 2),
new Ability(Abilities.DEFEATIST, 5)

View File

@ -878,7 +878,6 @@ export class BerryModifier extends PokemonHeldItemModifier {
pokemon.getOpponents().map(opp => applyAbAttrs(PreventBerryUseAbAttr, opp, cancelled));
if (cancelled.value) {
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' is too\nnervous to eat berries!'));
return false;
}

View File

@ -3813,9 +3813,9 @@ export class BerryPhase extends CommonAnimPhase {
berryModifier.consumed = false;
this.scene.updateModifiers(this.player);
}
}
return super.start();
}
}
this.end();
}