Fix callback found after finding spell
This commit is contained in:
@@ -32,8 +32,8 @@ class BattlegroundAgent:
|
||||
self.tagInBg()
|
||||
else:
|
||||
self.logger.log("Deserter debuff found, waiting for debuff to disapear before tagging to bg...")
|
||||
# self.inBgRoutine()
|
||||
time.sleep(3)
|
||||
self.logger.log("Battleground bg farming ended.")
|
||||
|
||||
def isDeserter(self):
|
||||
res = self.monitor.findMatch(self.deserterIcon)
|
||||
@@ -64,10 +64,10 @@ class BattlegroundAgent:
|
||||
self.inBgRoutine()
|
||||
|
||||
|
||||
def foundEndOfBg(self ):
|
||||
def foundEndOfBg(self, _res):
|
||||
self.logger.log("End of bg detected, leaving...")
|
||||
self.status = BG_STATUS.IDLE
|
||||
time.sleep(10)
|
||||
time.sleep(25)
|
||||
|
||||
def checkEndOfBg(self):
|
||||
self.monitor.findMatchAndClickIfAvailable(self.leaveBgButton, self.foundEndOfBg)
|
||||
|
||||
Reference in New Issue
Block a user