mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix mage gear being shown as twohanded (#15254)
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user