mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
update ability attribute callsite in shield dust test
This commit is contained in:
parent
a6c5ff76c2
commit
1ddcf9b0d6
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user