Minor fix

This commit is contained in:
Shadow15510 2022-04-17 22:43:36 +02:00
parent 8778fdafcd
commit 0c40574e4b
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ def fight(stat, opponent_stat, opponent_name):
print("{0}. {1} {2}".format(count + 1, spells[spell_id], spells_level[level - 1]))
count += 1
spell_choice = get_input()
if spell_choice < 0 or spell_choice > 3: spell_choice = 0
if spell_choice < 0 or spell_choice > len(stat[7]): spell_choice = 0
spell_choice -= 1
spell_id, level = stat[7][spell_choice][0], stat[7][spell_choice][1]
@ -358,7 +358,7 @@ def spell(data, stat):
print("<o> ============ <o>")
spell_choice = get_input()
if not (1 <= spell_choice <= 3) or spell_choice > len(stat[7]): spell_choice = 0
if not (1 <= spell_choice <= len(stat[7])): spell_choice = 0
if spell_choice:
spell_choice -= 1
spell_id, level = stat[7][spell_choice][0], stat[7][spell_choice][1]