forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
4c768fbec6
commit
b16821e92e
330 files changed
+35406
-1760
No files matched your search
@@ -27,6 +27,17 @@ function effectsOfKind<K extends AbilityEffect["kind"]>(
|
||||
}
|
||||
|
||||
describe("WoW 3.3.5 executable effect mapping", () => {
|
||||
it("resolves tooltip tokens that explicitly reference another DBC spell", () => {
|
||||
const chains = Object.values(generatedData.classes).flat();
|
||||
const dancingRuneWeapon = chains.find((chain) => chain.name === "Dancing Rune Weapon");
|
||||
const beaconOfLight = chains.find((chain) => chain.name === "Beacon of Light");
|
||||
const livingBomb = chains.find((chain) => chain.name === "Living Bomb");
|
||||
|
||||
expect(dancingRuneWeapon?.ranks[0]?.description).toContain("50% reduced damage");
|
||||
expect(beaconOfLight?.ranks.every((rank) => rank.description.includes("100% of the amount healed"))).toBe(true);
|
||||
expect(livingBomb?.ranks.find((rank) => rank.spellId === 55_359)?.description).toContain("512 Fire damage");
|
||||
});
|
||||
|
||||
it("uses the same legal talent-node set as the full catalog", () => {
|
||||
const talentNodeIds = new Set(Object.values(generatedData.classes)
|
||||
.flatMap((chains) => chains.flatMap((chain) => chain.talentNodeId ? [chain.talentNodeId] : [])));
|
||||
@@ -586,10 +597,15 @@ describe("WoW 3.3.5 executable effect mapping", () => {
|
||||
.toEqual(expect.arrayContaining([expect.objectContaining({ stat: "incoming-ranged-hit", value: -25 })]));
|
||||
});
|
||||
|
||||
it("keeps Blink's root and stun breaks without inventing target-relative teleport movement", () => {
|
||||
it("maps Blink to a 20-yard forward teleport while keeping its root and stun breaks", () => {
|
||||
const blink = byId("wow335-mage-blink");
|
||||
expect(blink.dbcSpellId).toBe(1953);
|
||||
expect(effectsOfKind(blink, "movement")).toEqual([]);
|
||||
expect(effectsOfKind(blink, "movement")).toEqual([{
|
||||
kind: "movement",
|
||||
movement: "teleport",
|
||||
toward: "destination",
|
||||
distance: 20,
|
||||
}]);
|
||||
expect(effectsOfKind(blink, "apply-aura").map((effect) => effect.aura.controlImmunities))
|
||||
.toEqual([["stun"], ["root"]]);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user