Skip to content

Commit

Permalink
Fix bug with weapon-type-based bonus display
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Dec 9, 2023
1 parent 1560fab commit 3602af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/core/character.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 3602af3

Please sign in to comment.