diff --git a/public/board.js b/public/board.js index 964329b..782d30a 100644 --- a/public/board.js +++ b/public/board.js @@ -1266,6 +1266,7 @@ canvas.addEventListener('contextmenu', function(event) { // Compare the event XY position to the item if(clickableCheck(x,y,itemKey)){ console.log('itemId: '+itemKey); + document.getElementById('effectTargetId').value = itemKey; // Only want to happen once (for now) // Maybe in future add to hand would trigger another event if there's an effect?