Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -165,8 +165,9 @@ def main():
|
|
165 |
|
166 |
if st.button("π₯ Battle!"):
|
167 |
st.session_state.selected_player = selected_player
|
168 |
-
|
169 |
-
|
|
|
170 |
st.session_state.selected_monster = get_random_monster()
|
171 |
if monster:
|
172 |
battle_player_card()
|
|
|
165 |
|
166 |
if st.button("π₯ Battle!"):
|
167 |
st.session_state.selected_player = selected_player
|
168 |
+
shuffle_monsters()
|
169 |
+
st.session_state.selected_monster = st.sidebar.selectbox("Select a monster:", list(MONSTERS.keys()))
|
170 |
+
monster = get_random_monster()
|
171 |
st.session_state.selected_monster = get_random_monster()
|
172 |
if monster:
|
173 |
battle_player_card()
|