Update Healer Man server
This commit is contained in:
1 parent
4fb7a0b9c8
commit
4c768fbec6
24 files changed
+654
-22
No files matched your search
@@ -42,6 +42,35 @@ describe("WoW 3.3.5 executable effect mapping", () => {
|
||||
expect(byId("wow335-priest-power-word-shield").gcdMs).toBe(1_500);
|
||||
});
|
||||
|
||||
it("maps Stormstrike's generated weapon-hit children to their attacking hands", () => {
|
||||
const stormstrike = abilityAtLevel(byId("wow335-shaman-stormstrike"), 80);
|
||||
const chain = generatedData.classes.shaman.find((candidate) => candidate.name === "Stormstrike");
|
||||
expect(stormstrike.dbcSpellId).toBe(17364);
|
||||
expect(chain).toBeDefined();
|
||||
|
||||
const expectedHits = [32175, 32176].map((spellId) => {
|
||||
const weaponEffect = chain!.ranks.find((rank) => rank.spellId === spellId)!
|
||||
.effects.find((effect) => effect.effectType === 58)!;
|
||||
expect(weaponEffect.coefficient).toBe(1);
|
||||
return {
|
||||
kind: "damage" as const,
|
||||
coefficient: weaponEffect.coefficient,
|
||||
school: "physical" as const,
|
||||
weaponHand: spellId === 32175 ? "main-hand" as const : "off-hand" as const,
|
||||
};
|
||||
});
|
||||
|
||||
expect(effectsOfKind(stormstrike, "damage")).toEqual(expectedHits);
|
||||
expect(stormstrike.effects).not.toEqual(expect.arrayContaining([
|
||||
expect.objectContaining({ kind: "trigger-spell", spellId: 32175 }),
|
||||
expect.objectContaining({ kind: "trigger-spell", spellId: 32176 }),
|
||||
]));
|
||||
expect(WOW335_TRIGGERED_ABILITIES_BY_SPELL_ID[32175]).toBeUndefined();
|
||||
expect(WOW335_TRIGGERED_ABILITIES_BY_SPELL_ID[32176]).toBeUndefined();
|
||||
expect(WOW335_ABILITIES_BY_CLASS.shaman.some((ability) => [32175, 32176].includes(ability.dbcSpellId ?? 0)))
|
||||
.toBe(false);
|
||||
});
|
||||
|
||||
it("keeps Bloodthirst's player cast, next-hit aura, and triggered heal on their source rows", () => {
|
||||
const bloodthirst = abilityAtLevel(byId("wow335-warrior-bloodthirst"), 80);
|
||||
expect(bloodthirst).toMatchObject({
|
||||
|
||||
Reference in new issue
Block a user