Skip to content

Commit

Permalink
Torajan Jungle Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yayza committed Apr 13, 2021
1 parent 6a3d248 commit 0fdf61b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kolbot/libs/bots/Mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,16 @@ function Mapper() {
};

this.killBoss = function () {
var boss, bossPreset;
var bossPreset, bossId, bossUnit;

bossPreset = [746, 750, 755, 800, 809, 826, 861, 870, 879, 882, 883, 884];
boss = bossPreset.find( unit => getPresetUnit(me.area, 1, unit));

Pather.moveToPreset(me.area, 1, boss, 0, 0, true, false);

bossId = bossPreset.find( unit => getPresetUnit(me.area, 1, unit));
bossUnit = getPresetUnit(me.area, 1, bossId);

Pather.moveToPreset(me.area, 1, bossId, 0, 0, true, false);
Pather.moveTo(bossUnit.roomx * 5, bossUnit.roomy * 5, 3, true, false); // yea, I know... it's a Band-aid for Great Worm

Attack.clear(30, 0, boss);
Attack.clear(30, 0, bossId);

return true;
};
Expand Down

0 comments on commit 0fdf61b

Please sign in to comment.