update ability attribute callsite in shield dust test

This commit is contained in:
Sirz Benjie 2025-06-17 11:43:02 -05:00
parent a6c5ff76c2
commit 1ddcf9b0d6
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -1,5 +1,5 @@
import { BattlerIndex } from "#enums/battler-index"; import { BattlerIndex } from "#enums/battler-index";
import { applyAbAttrs, applyPreDefendAbAttrs } from "#app/data/abilities/apply-ab-attrs"; import { applyAbAttrs } from "#app/data/abilities/apply-ab-attrs";
import { MoveEffectPhase } from "#app/phases/move-effect-phase"; import { MoveEffectPhase } from "#app/phases/move-effect-phase";
import { NumberHolder } from "#app/utils/common"; import { NumberHolder } from "#app/utils/common";
import { AbilityId } from "#enums/ability-id"; import { AbilityId } from "#enums/ability-id";
@ -52,25 +52,16 @@ describe("Abilities - Shield Dust", () => {
expect(move.id).toBe(MoveId.AIR_SLASH); expect(move.id).toBe(MoveId.AIR_SLASH);
const chance = new NumberHolder(move.chance); const chance = new NumberHolder(move.chance);
await applyAbAttrs( applyAbAttrs("MoveEffectChanceMultiplierAbAttr", {
"MoveEffectChanceMultiplierAbAttr", pokemon: phase.getUserPokemon()!,
phase.getUserPokemon()!,
null,
false,
chance, chance,
move, move,
phase.getFirstTarget(), });
false, applyAbAttrs("IgnoreMoveEffectsAbAttr", {
); pokemon: phase.getFirstTarget()!,
await applyPreDefendAbAttrs( move,
"IgnoreMoveEffectsAbAttr",
phase.getFirstTarget()!,
phase.getUserPokemon()!,
null,
null,
false,
chance, chance,
); });
expect(chance.value).toBe(0); expect(chance.value).toBe(0);
}); });