mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +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', () => {
|
||||
let user;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ function fillSpecialGear (gearItems, gearType, value, stats) {
|
||||
value: actualValue,
|
||||
season,
|
||||
}, actualStats);
|
||||
if (klass === 'wizard') {
|
||||
if (klass === 'wizard' && gearType === 'weapon') {
|
||||
defaults(gearItems[key], {
|
||||
twoHanded: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user