forked from phenom/healer-man
Release Healer Man 0.1.20
This commit is contained in:
1 parent
d9bebb4e81
commit
699fc858c9
22 files changed
+551
-295
No files matched your search
@@ -7,7 +7,8 @@ import {
|
||||
auraDefinitionIcon,
|
||||
auraDefinitionIsLongTerm,
|
||||
auraDescription,
|
||||
} from "./AuraStrip";
|
||||
groupAurasForDisplay,
|
||||
} from "./auraDisplay";
|
||||
|
||||
function aura(overrides: Partial<AuraDefinition> = {}): AuraDefinition {
|
||||
return {
|
||||
@@ -71,4 +72,25 @@ describe("aura strip visibility", () => {
|
||||
absorbs: [{ id: "test-absorb", amount: 250 }],
|
||||
}), 175))).toBe("Absorbs up to 175 incoming damage.");
|
||||
});
|
||||
|
||||
it("shows multi-effect and repeatedly sourced spell auras as one icon", () => {
|
||||
const first = activeAura(aura({
|
||||
id: "frostbolt-slow",
|
||||
name: "Frostbolt (DBC 116, Aura 33)",
|
||||
icon: "/assets/ui/spells/frostbolt.png",
|
||||
}));
|
||||
const second = {
|
||||
...activeAura(aura({
|
||||
id: "frostbolt-secondary",
|
||||
name: "Frostbolt (DBC 116, Aura 118)",
|
||||
icon: "/assets/ui/spells/frostbolt.png",
|
||||
})),
|
||||
instanceId: "second-frostbolt-aura",
|
||||
sourceId: "second-mage",
|
||||
appliedAt: 2_000,
|
||||
expiresAt: 14_000,
|
||||
};
|
||||
|
||||
expect(groupAurasForDisplay([first, second])).toEqual([second]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user