Skip to content

Commit

Permalink
fix: error trying to iterate me
Browse files Browse the repository at this point in the history
  • Loading branch information
ejt1 committed Feb 10, 2024
1 parent 9044fed commit fe9b1a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/d2bs/kolbot/libs/SoloPlay/Functions/AttackOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,9 @@ Attack.pwnDia = function () {
if (me.mp > manaStatic + manaTP + manaTP
&& diabloMissiles.length < 3 && !dia.attacking
&& dia.hpPercent > Config.CastStatic) {
let [x, y] = me;
//let [x, y] = me; // BUG(ejt): TypeError: value is not iterable
let x = me.x;
let y = me.y;
ClassAttack.switchCurse(dia, true); // curse him if we can
// re-check his mode
if (!dia.attacking) {
Expand Down

0 comments on commit fe9b1a3

Please sign in to comment.