updating buff and debuff icons. separated COA classes from WoW classes on the character creation screen
This commit is contained in:
@@ -38,7 +38,13 @@ describe("named aura combat runtime", () => {
|
||||
sourceId: PLAYER_AGGRO_ID,
|
||||
targetId: PLAYER_AGGRO_ID,
|
||||
expiresAt: now + 1_800_000,
|
||||
definition: { disposition: "buff", dispelCategory: "magic" },
|
||||
definition: {
|
||||
disposition: "buff",
|
||||
dispelCategory: "magic",
|
||||
icon: useCombatStore.getState().abilities.find((ability) => (
|
||||
ability.id === "wow335-priest-power-word-fortitude"
|
||||
))?.icon,
|
||||
},
|
||||
});
|
||||
|
||||
useCombatStore.getState().tick(0, now + 1_800_000);
|
||||
@@ -57,6 +63,11 @@ describe("named aura combat runtime", () => {
|
||||
.flatMap((aura) => aura.absorbs)
|
||||
.reduce((total, absorb) => total + absorb.remaining, 0);
|
||||
expect(beforeAbsorb).toBeGreaterThan(0);
|
||||
expect(useCombatStore.getState().auras.find((aura) => aura.absorbs.length)?.definition.icon).toBe(
|
||||
useCombatStore.getState().abilities.find((ability) => (
|
||||
ability.id === "wow335-priest-power-word-shield"
|
||||
))?.icon,
|
||||
);
|
||||
|
||||
const healthDamage = useCombatStore.getState().damagePlayer(20, "shadow", 80);
|
||||
const afterAbsorb = useCombatStore.getState().auras
|
||||
|
||||
Reference in New Issue
Block a user