Merge pull request #825 from kuangshen04/PR-Branch

武将技能bugfix
This commit is contained in:
Spmario233 2024-01-20 14:14:56 +08:00 committed by GitHub
commit f44fd43ad2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -993,6 +993,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return '手牌上限+'+storage;
}
},
onremove:true,
charlotte:true,
mod:{
maxHandcard(player,num){

View File

@ -655,7 +655,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const event=get.event();
if(!event.isMine()) return;
if(button.classList.contains('selectable')==false) return;
if(ui.selected.buttons.length>=lib.skill.sbkanpo.getNumber) return false;
if(ui.selected.buttons.length>=sum) return false;
button.classList.add('selected');
ui.selected.buttons.push(button);
let counterNode=button.querySelector('.caption');