Merge branch 'develop' into release

This commit is contained in:
Sabe Jones
2024-06-21 10:14:54 -05:00
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', () => { describe('backer gear', () => {
let user; let user;

View File

@@ -36,7 +36,7 @@ function fillSpecialGear (gearItems, gearType, value, stats) {
value: actualValue, value: actualValue,
season, season,
}, actualStats); }, actualStats);
if (klass === 'wizard') { if (klass === 'wizard' && gearType === 'weapon') {
defaults(gearItems[key], { defaults(gearItems[key], {
twoHanded: true, twoHanded: true,
}); });