1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 04:07:20 +08:00

Fix: Meowfficer unable to buy free one when no enough money

This commit is contained in:
LmeSzinc
2020-08-24 11:07:20 +08:00
parent 77f6836558
commit b88c81a22a

View File

@@ -40,7 +40,7 @@ class RewardMeowfficer(UI):
count = remain
# Check coins
coins = MEOWDDICER_COINS.ocr(self.device.image)
if coins < BUY_PRIZE:
if (coins < BUY_PRIZE) and (remain < BUY_MAX):
logger.warning('Not enough coins to buy one')
return False
elif (count - int(remain == BUY_MAX)) * BUY_PRIZE > coins: