Merge pull request #379 from mobyw/Bot

🐛 修复 `'AbyssInfo' object has no attribute 'info'`
This commit is contained in:
惜月 2023-01-31 19:36:47 +08:00 committed by GitHub
commit 06f5853fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ async def draw_abyss_card(info: AbyssInfo):
await img.paste(circle, (46, 485))
await img.paste(chara_img, (49, 488))
# 最多承伤
if info.info.max_take_damage is not None:
if info.max_take_damage is not None:
chara_img = PMImage(
await load_image(
RESOURCE_BASE_PATH / 'avatar' / f'{info.max_take_damage.icon}.png',