Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Raid closing optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpersi committed Nov 26, 2020
1 parent b213712 commit 223f87f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/github/ilpersi/BHBot/DungeonThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,12 @@ private void processDungeon() {
} else {

//close 'cleared' popup
bot.browser.closePopupSecurely(BHBot.cues.get("Cleared"), BHBot.cues.get("YesGreen"));
Cue YesGreenWithBounds = null;
if (BHBot.State.Raid.equals(bot.getState())) {
YesGreenWithBounds = new Cue(BHBot.cues.get("YesGreen"), Bounds.fromWidthHeight(290, 345, 70, 45));
}

bot.browser.closePopupSecurely(BHBot.cues.get("Cleared"), YesGreenWithBounds);

// close the activity window to return us to the main screen
if (bot.getState() != BHBot.State.Expedition) {
Expand Down

0 comments on commit 223f87f

Please sign in to comment.