File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,10 @@ function performCalculationsOM() {
277277 return secondMove . maxDamage - firstMove . maxDamage ;
278278 } ) ;
279279 if ( shouldUseMnM ) {
280- if ( megaDelta [ result . attacker . item ] ) {
280+ if ( megaDelta [ toID ( result . attacker . item ) ] ) {
281281 result . rawDesc . attackerItem = result . attacker . item ;
282282 }
283- if ( megaDelta [ result . defender . item ] ) {
283+ if ( megaDelta [ toID ( result . defender . item ) ] ) {
284284 result . rawDesc . defenderItem = result . defender . item ;
285285 }
286286 }
@@ -302,10 +302,10 @@ function performCalculationsOM() {
302302 return secondMove . maxDamage - firstMove . maxDamage ;
303303 } ) ;
304304 if ( shouldUseMnM ) {
305- if ( megaDelta [ result . attacker . item ] ) {
305+ if ( megaDelta [ toID ( result . attacker . item ) ] ) {
306306 result . rawDesc . attackerItem = result . attacker . item ;
307307 }
308- if ( megaDelta [ result . defender . item ] ) {
308+ if ( megaDelta [ toID ( result . defender . item ) ] ) {
309309 result . rawDesc . defenderItem = result . defender . item ;
310310 }
311311 }
You can’t perform that action at this time.
0 commit comments