Skip to content

Commit

Permalink
pull in #4089
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 10, 2023
1 parent 10420de commit 188f811
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 @@ -578,7 +578,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 188f811

Please sign in to comment.