Skip to content

Commit

Permalink
Merge pull request #4089 from wowsims/apl
Browse files Browse the repository at this point in the history
Fix bug with weapon-type-based bonus display
  • Loading branch information
jimmyt857 authored Dec 9, 2023
2 parents bb04ce4 + 3602af3 commit 8c11e5c
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 8c11e5c

Please sign in to comment.