Skip to content

Commit

Permalink
Exclude trinkets that can't procs from NumEquippedStatProcTrinkets
Browse files Browse the repository at this point in the history
  • Loading branch information
Polynomix committed Nov 5, 2024
1 parent 7ec824e commit d79bab8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sim/core/apl_values_aura_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,7 @@ func (value *APLValueNumEquippedStatProcTrinkets) Type() proto.APLValueType {
return proto.APLValueType_ValueTypeInt
}
func (value *APLValueNumEquippedStatProcTrinkets) GetInt(sim *Simulation) int32 {
return int32(len(value.matchingAuras))
return int32(len(FilterSlice(value.matchingAuras, func(aura *StatBuffAura) bool {
return aura.CanProc(sim)
})))
}

0 comments on commit d79bab8

Please sign in to comment.