[Bug fix] Character 5 value error

- Fix a bug that the character **Hikari & Tairitsu (Reunion)** cannot be uncapped. #100
This commit is contained in:
Lost-MSth
2023-04-01 17:11:45 +08:00
parent 6f82e9b269
commit 8efd11cd02
3 changed files with 4 additions and 3 deletions

View File

@@ -349,7 +349,7 @@ class UserCharacter(Character):
self.c.execute(
'''select amount from user_item where user_id=? and item_id=? and type="core"''', (self.user.user_id, i.item_id))
y = self.c.fetchone()
if not y or i.amount > y[0]:
if i.amount > 0 and (not y or i.amount > y[0]):
raise ItemNotEnough('The cores are not enough.')
for i in self.uncap_cores:

View File

@@ -1,6 +1,6 @@
from .config_manager import Config
ARCAEA_SERVER_VERSION = 'v2.11.1'
ARCAEA_SERVER_VERSION = 'v2.11.1.1'
class Constant: