now goes first in priority bracket

This commit is contained in:
Luc Dube 2024-04-23 10:18:58 -04:00
parent a9b0753a7e
commit de3db9988f

View File

@ -1530,7 +1530,7 @@ export class BlockOneHitKOAbAttr extends AbAttr {
export class IncrementMovePriorityAbAttr extends AbAttr { export class IncrementMovePriorityAbAttr extends AbAttr {
private moveIncrementFunc: (pokemon: Pokemon, move: Move) => boolean; private moveIncrementFunc: (pokemon: Pokemon, move: Move) => boolean;
private increaseAmount: integer; private increaseAmount: number;
constructor(moveIncrementFunc: (pokemon: Pokemon, move: Move) => boolean, increaseAmount = 1) { constructor(moveIncrementFunc: (pokemon: Pokemon, move: Move) => boolean, increaseAmount = 1) {
super(true); super(true);
@ -3075,7 +3075,7 @@ export function initAbilities() {
.attr(NoTransformAbilityAbAttr) .attr(NoTransformAbilityAbAttr)
.attr(NoFusionAbilityAbAttr), .attr(NoFusionAbilityAbAttr),
new Ability(Abilities.QUICK_DRAW, "Quick Draw", "Enables the Pokémon to move first occasionally.", 8) new Ability(Abilities.QUICK_DRAW, "Quick Draw", "Enables the Pokémon to move first occasionally.", 8)
.attr(IncrementMovePriorityAbAttr, (pokemon, move) => Math.random() <= 1/3), .attr(IncrementMovePriorityAbAttr, (pokemon, move) => Math.random() <= 1/3, 0.5),
new Ability(Abilities.UNSEEN_FIST, "Unseen Fist (N)", "If the Pokémon uses moves that make direct contact, it can attack the target even if the target protects itself.", 8), new Ability(Abilities.UNSEEN_FIST, "Unseen Fist (N)", "If the Pokémon uses moves that make direct contact, it can attack the target even if the target protects itself.", 8),
new Ability(Abilities.CURIOUS_MEDICINE, "Curious Medicine (N)", "When the Pokémon enters a battle, it scatters medicine from its shell, which removes all stat changes from allies.", 8), new Ability(Abilities.CURIOUS_MEDICINE, "Curious Medicine (N)", "When the Pokémon enters a battle, it scatters medicine from its shell, which removes all stat changes from allies.", 8),
new Ability(Abilities.TRANSISTOR, "Transistor", "Powers up Electric-type moves.", 8) new Ability(Abilities.TRANSISTOR, "Transistor", "Powers up Electric-type moves.", 8)