Change Unnerve to on-summon message
parent
382f1a8d78
commit
bfcd8b4c40
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3813,9 +3813,9 @@ export class BerryPhase extends CommonAnimPhase {
|
|||
berryModifier.consumed = false;
|
||||
this.scene.updateModifiers(this.player);
|
||||
}
|
||||
}
|
||||
return super.start();
|
||||
}
|
||||
}
|
||||
|
||||
this.end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue