Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit edcde62

Browse files
authored
Update hunt.py
Fixed error (didn't use gifts)
1 parent 7f65ce9 commit edcde62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fight/hunt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def fight(side, DamageDone, session):
6060
food = tree.xpath('//*[@id="foodLimit2"]')[0].text
6161
gift = tree.xpath('//*[@id="giftLimit2"]')[0].text
6262
if Health < 50:
63-
use = "eat" if food else "gift"
63+
use = "eat" if int(food) else "gift"
6464
session.post(f"{URL}{use}.html", data={'quality': 5})
6565
battleScore = session.get(f'{URL}battleScore.html?id={hidden_id}&at={apiCitizen["id"]}&ci={apiCitizen["citizenshipId"]}&premium=1').json()
6666
Damage = 0

0 commit comments

Comments
 (0)