mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
Change Unnerve to on-summon message
This commit is contained in:
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,8 +3813,8 @@ export class BerryPhase extends CommonAnimPhase {
|
||||
berryModifier.consumed = false;
|
||||
this.scene.updateModifiers(this.player);
|
||||
}
|
||||
return super.start();
|
||||
}
|
||||
return super.start();
|
||||
}
|
||||
|
||||
this.end();
|
||||
|
Loading…
Reference in New Issue
Block a user