修复典孙权【制衡】bug

This commit is contained in:
157 2024-01-21 10:38:26 +08:00
parent 5afdae3b79
commit 83fad73cea
1 changed files with 9 additions and 3 deletions

View File

@ -387,6 +387,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
//会玩孙权
dczhiheng:{
audio:'rezhiheng',
init:(player)=>{
player.storage.dczhiheng_hit=[];
},
enable:'phaseUse',
position:'he',
filterCard:lib.filter.cardDiscardable,
@ -440,12 +443,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
hit:{
charlotte:true,
onremove:true,
onremove:(player)=>{
player.storage.dczhiheng_hit=[];
},
mark:true,
marktext:'衡',
intro:{
markcount:function(storage,player){
return player.getStorage('dczhiheng_hit').length;
markcount:function(storage){
if(storage) return storage.length;
return 0;
},
content:'本回合已对$造成过伤害',
},