Commit ee442e5
Fix crash when sorting some gems by Full DPS (#9143)
* Fix crash when sorting some gems by Full DPS
When we were checking to see if a gem could be affected by a possible support gem we were not considering if the gem had a additional granted effect which was the supporting part of the gem
Instead of using the granted effect of the support, we were using the granted effect of the gem which caused a bunch of issues for the code that only expects to deal with supports
Also applied this logic to cross linked supports too as I noticed it had a similar issue
Also made cross link supports skip it's own socketgroup as it's trying to look for other socketgroups that can support it
e.g. Ngamahu's Flame was checking it's own Molten Burst gem group which couldn't possible have supports
* Fix error with supports granted by items
Supports granted by many items do not have any gemData as they are just a grantedEffect
* Fix test issues
* Use function to remove duplicate code
---------
Co-authored-by: LocalIdentity <[email protected]>1 parent dc9bb24 commit ee442e5
2 files changed
+41
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
110 | 131 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
114 | 137 | | |
115 | 138 | | |
116 | | - | |
| 139 | + | |
117 | 140 | | |
118 | 141 | | |
119 | 142 | | |
| |||
125 | 148 | | |
126 | 149 | | |
127 | 150 | | |
128 | | - | |
| 151 | + | |
| 152 | + | |
129 | 153 | | |
130 | 154 | | |
131 | | - | |
| 155 | + | |
132 | 156 | | |
133 | 157 | | |
134 | 158 | | |
| |||
137 | 161 | | |
138 | 162 | | |
139 | 163 | | |
140 | | - | |
| 164 | + | |
| 165 | + | |
141 | 166 | | |
142 | 167 | | |
143 | 168 | | |
144 | 169 | | |
145 | | - | |
| 170 | + | |
146 | 171 | | |
147 | | - | |
| 172 | + | |
148 | 173 | | |
149 | 174 | | |
150 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
| 1581 | + | |
1582 | 1582 | | |
1583 | | - | |
1584 | | - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1585 | 1589 | | |
1586 | 1590 | | |
1587 | 1591 | | |
| |||
0 commit comments