LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

Error when starting battle with no level #41

Closed LAMaglan closed 6 months ago

LAMaglan commented 6 months ago

If no level is added in the fields in "index.html", an error occurs when "battle" endpoint is accessed. Should not happen, especially because Pokemon class is initalized with level = 1. Address either way