-
-
Save anonymous/21fb4bfb60e5689d79c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hire_dark_mages(count) | |
local hired = 0 | |
local any_existed = false | |
while count > hired do | |
any_existed = false | |
if existsClick("dark_mage.png") or existsClick("dark_mage_mirrored.png") then | |
click("hire.png") | |
hired = hired + 1 | |
any_existed = true | |
end | |
if not any_existed then | |
break | |
end | |
end | |
return hired | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment