Unlucky-Life / ankimon

Ankimon is a Anki Addon to Gamify your learning experience
Other
38 stars 4 forks source link

Error while attacking! #88

Closed sunrucong closed 1 month ago

sunrucong commented 2 months ago

Happens randomly

image

face515 commented 2 months ago

Does it happen with every pokemon or just some?

sunrucong commented 2 months ago

Just one, this lv. 30 something Victini I have right now, trying it out with more mons right now

sunrucong commented 2 months ago

Okay after like 15 minutes of no issues it happened with my lvl 8-10 wimpod specifically against a lv. 10 magearna

sunrucong commented 2 months ago

So far I've noticed it's only after I've studied for a while with each new session, though not sure if it's based on time or number of cards done

sunrucong commented 2 months ago

Yeah it's happening now even with my starter Charizard which hasn't had any issues for the longest time prior

face515 commented 2 months ago

Just happened with my Anorith, maybe some sort of bug in code? I'm not very good at python, but I could attempt to take a look at the code

Unlucky-Life commented 2 months ago

@face515 @sunrucong there are some attack moves that dont correspond yet to any dmg or effect => thats when this throws an error

Its planned to create a workaround for this to not throw errors anymore !

sunrucong commented 2 months ago

Hmm I think that may be the case, especially due to a move that the opponent Pokemon was doing, because I only noticed it happening on my main Charizard when I had that option to be attacked turned on (my Charizard has stuck with the same 4 dmg-dealing moves since hitting 100 a few weeks back without issue)

Once I turned that option off I haven't run into the issue on my Charizard so that checks out