1
0

Merge pull request #8 from KW46/fix-issue-1

FIX: Returning list when using help instead of just queried item
This commit is contained in:
Kwarde 2024-01-16 16:17:37 +01:00 committed by GitHub
commit 93cfb5caa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ def get_player_spell_from_input(player: Player):
continue continue
elif player_input.find("help", 0) != -1: elif player_input.find("help", 0) != -1:
find_what = player_input[5:] find_what = player_input[5:]
spell = find_spell_by_name(find_what) spell = find_spell_by_name(find_what)[0]
if spell == spell_none: if spell == spell_none:
print("<!> Spell '{what}' does not exist!".format(what=find_what)) print("<!> Spell '{what}' does not exist!".format(what=find_what))