fix mage gear being shown as twohanded (#15254)

This commit is contained in:
Phillip Thelen
2024-06-21 17:14:25 +02:00
committed by GitHub
parent 54f84af274
commit 1a3d6f6520
2 changed files with 11 additions and 1 deletions

View File

@@ -68,6 +68,16 @@ describe('Gear', () => {
});
});
it('only assigns mage weapons twoHanded', () => {
each([allGear.armor.special, allGear.head.special, allGear.shield.special], gearType => {
each(gearType, gear => {
if (gear.specialClass === 'wizard') {
expect(gear.twoHanded, gear.key).to.not.eql(true);
}
});
});
});
describe('backer gear', () => {
let user;