oskarrough / slaytheweb

Slay the Web is a singleplayer, deck builder, roguelike card crawl game for the web based on Slay the Spire
https://slaytheweb.cards
GNU Affero General Public License v3.0
193 stars 40 forks source link

Fix stuck cards after being dropped #223

Closed oskarrough closed 8 months ago

oskarrough commented 8 months ago

The getTargets() method needed either player, allEnemies or enemyX (where X is the index of the enemy). Somehow I'm also calling player0 instead of just player, in some cases. This would break drag drop and leave the card hanging, so to speak.

I hope this fixes it.

Closes https://github.com/oskarrough/slaytheweb/issues/222

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
slaytheweb ✅ Ready (Inspect) Visit Preview Jan 16, 2024 0:16am