Closed oskarrough closed 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.
getTargets()
player
allEnemies
enemyX
player0
I hope this fixes it.
Closes https://github.com/oskarrough/slaytheweb/issues/222
The latest updates on your projects. Learn more about Vercel for Git ↗︎
The
getTargets()
method needed eitherplayer
,allEnemies
orenemyX
(where X is the index of the enemy). Somehow I'm also callingplayer0
instead of justplayer
, 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