diff --git a/game/game.js b/game/game.js index 0bae27e33..1019933c8 100644 --- a/game/game.js +++ b/game/game.js @@ -2991,11 +2991,9 @@ if(map[i]._link.config.type=='autoskill'){ if(!lib.config.autoskilllist.contains(i)){ map[i].classList.add('on'); - // ui.autoskill[i].lastChild.classList.add('on'); } else{ map[i].classList.remove('on'); - // ui.autoskill[i].lastChild.classList.remove('on'); } } else if(map[i]._link.config.type=='banskill'){ @@ -15418,7 +15416,7 @@ card=get.autoViewAs(card,null,player); var num=get.info(card).usable; if(typeof num=='function') num=num(card,player); - num=game.checkMod(card,player,num,'cardUsable',player.getSkills()); + num=game.checkMod(card,player,num,'cardUsable',player); if(typeof num!='number') return Infinity; if(!pure&&_status.currentPhase==player){ return num-get.cardCount(card,player); @@ -24993,7 +24991,11 @@ }, checkMod:function(){ var name=arguments[arguments.length-2]; - var skills=arguments[arguments.length-1].concat(lib.skill.global); + var skills=arguments[arguments.length-1]; + if(skills.getSkills){ + skills=skills.getSkills(); + } + skills=skills.concat(lib.skill.global); game.expandSkills(skills); var arg=[],i,info; for(i=0;i0; }, content:function(){ "step 0" var move=2; - move=game.checkMod(player,move,'chessMove',player.getSkills()); + move=game.checkMod(player,move,'chessMove',player); player.chooseToMove(move).phasing=true; "step 1" if(ui.confirm){