diff --git a/game/game.js b/game/game.js index 2b7efaad8..10a2560b8 100644 --- a/game/game.js +++ b/game/game.js @@ -23631,12 +23631,19 @@ } } } - if(arguments.length==0){ - while(document.getElementsByClassName('selectable').length>0){ - document.getElementsByClassName('selectable')[0].classList.remove('selectable'); + var argc=arguments.length; + var args=new Array(argc); + for(var i=0;i0){ + selectable[0].classList.remove('selectable'); } - while(document.getElementsByClassName('selected').length>0){ - document.getElementsByClassName('selected')[0].classList.remove('selected'); + while(selected.length>0){ + selected[0].classList.remove('selected'); } if(_status.event.player){ var cards=_status.event.player.get('hej'); @@ -23650,8 +23657,8 @@ ui.selected.targets.length=0; } else{ - for(i=0;i