Skip to content

Commit

Permalink
Merge pull request #1169 from Polynomix/apl_aura_set
Browse files Browse the repository at this point in the history
Aura Sets - Removed trinkets that cant proc from NumEquippedStatProcTrinkets
  • Loading branch information
NerdEgghead authored Nov 5, 2024
2 parents 7ec824e + d79bab8 commit ee8b2e2
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 ee8b2e2

Please sign in to comment.