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:
commit
93cfb5caa9
2
game.py
2
game.py
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user