修复攻击距离为负数谋太史慈摸牌bug

This commit is contained in:
mengxinzxz 2024-01-31 13:48:25 +08:00
parent 7501bf8f56
commit 0914497cd6
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
.filter(evt=>evt==trigger.getParent())
.then(()=>{
const num=Math.min(5,player.getAttackRange());
if(num) player.draw(num);
if(num>0) player.draw(num);
});
},
},