From 3602af317511ca1fa8ac8007c75229e52217ea77 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Sat, 9 Dec 2023 14:59:14 -0800 Subject: [PATCH] Fix bug with weapon-type-based bonus display --- sim/core/character.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/core/character.go b/sim/core/character.go index 920b6f03be..1017ef6de6 100644 --- a/sim/core/character.go +++ b/sim/core/character.go @@ -606,7 +606,7 @@ func (character *Character) GetProcMaskForItem(itemID int32) ProcMask { func (character *Character) GetProcMaskForTypes(weaponTypes ...proto.WeaponType) ProcMask { return character.getProcMaskFor(func(weapon *Item) bool { - return slices.Contains(weaponTypes, weapon.WeaponType) + return weapon == nil || slices.Contains(weaponTypes, weapon.WeaponType) }) }