3D8武将bug修复

This commit is contained in:
copcap 2024-01-10 15:32:40 +08:00
parent e6a88a0c27
commit a45dbd289d
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
enable:'chooseToUse', enable:'chooseToUse',
hiddenCard:function(player,name){ hiddenCard:function(player,name){
if(player.hasSkill('dddxiaxing_used')) return false;
return name=='tao'; return name=='tao';
}, },
filter:function(event,player){ filter:function(event,player){
@ -413,6 +414,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
forced:true, forced:true,
filter:function(event,player){ filter:function(event,player){
if(get.type(event.card)!='equip') return false; if(get.type(event.card)!='equip') return false;
if(get.subtype(event.card)!='equip1') return false;
const range=player.getAttackRange(); const range=player.getAttackRange();
return !game.hasPlayer(current=>{ return !game.hasPlayer(current=>{
return current.getAttackRange()>range; return current.getAttackRange()>range;