mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +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)
|
.attr(StatChangeMultiplierAbAttr, -1)
|
||||||
.ignorable(),
|
.ignorable(),
|
||||||
new Ability(Abilities.UNNERVE, 5)
|
new Ability(Abilities.UNNERVE, 5)
|
||||||
.attr(PreventBerryUseAbAttr),
|
.attr(PreventBerryUseAbAttr)
|
||||||
|
.attr(PostSummonMessageAbAttr, (pokemon: Pokemon) => getPokemonMessage(pokemon, ' prevents eating berries!')),
|
||||||
new Ability(Abilities.DEFIANT, 5)
|
new Ability(Abilities.DEFIANT, 5)
|
||||||
.attr(PostStatChangeStatChangeAbAttr, (target, statsChanged, levels) => levels < 0, [BattleStat.ATK], 2),
|
.attr(PostStatChangeStatChangeAbAttr, (target, statsChanged, levels) => levels < 0, [BattleStat.ATK], 2),
|
||||||
new Ability(Abilities.DEFEATIST, 5)
|
new Ability(Abilities.DEFEATIST, 5)
|
||||||
|
@ -878,7 +878,6 @@ export class BerryModifier extends PokemonHeldItemModifier {
|
|||||||
pokemon.getOpponents().map(opp => applyAbAttrs(PreventBerryUseAbAttr, opp, cancelled));
|
pokemon.getOpponents().map(opp => applyAbAttrs(PreventBerryUseAbAttr, opp, cancelled));
|
||||||
|
|
||||||
if (cancelled.value) {
|
if (cancelled.value) {
|
||||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' is too\nnervous to eat berries!'));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3813,9 +3813,9 @@ export class BerryPhase extends CommonAnimPhase {
|
|||||||
berryModifier.consumed = false;
|
berryModifier.consumed = false;
|
||||||
this.scene.updateModifiers(this.player);
|
this.scene.updateModifiers(this.player);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return super.start();
|
return super.start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.end();
|
this.end();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user