hugosaintemarie / magic-maze

Online version of board game "Magic Maze"
https://magicmaze.herokuapp.com
MIT License
20 stars 11 forks source link

TypeError thrown while moving a hero if mouse is held down and moved all over the place #47

Open rcjsuen opened 3 years ago

rcjsuen commented 3 years ago
  1. Start a one-player game with no bots on scenario 1.
  2. Click on the "Next Action" button until you get vortex.
  3. Click on a hero and hold down the button and move wildly in and out of the browser window several times.
  4. Open the browser debugger's console and you should see some errors.

Production:

Uncaught TypeError: o.default.get(...).isEmpty is not a function
    at e.value (bundle.js:1)
    at e.value (bundle.js:1)
    at Object.mouseMove (bundle.js:1)
    at e (bundle.js:1)

Local Development:

Uncaught TypeError: targetCell.isEmpty is not a function
    at Hero.getPath (hero.js:100)
    at Hero.checkPath (hero.js:182)
    at Object.mouseMove (events.js:301)
    at draw (user.js:90)