谋张郃bug修复

修复谋张郃【巧变①】跳过判定阶段移动的区域为装备区的bug
This commit is contained in:
mengxinzxz 2023-08-30 02:16:07 +08:00 committed by GitHub
parent c8dcb504a0
commit 822dcab9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
trigger:{player:['phaseJudgeBefore','phaseDrawBefore','phaseUseBefore']}, trigger:{player:['phaseJudgeBefore','phaseDrawBefore','phaseUseBefore']},
filter:function(event,player){ filter:function(event,player){
if(event.name=='phaseJudge') return player.countCards('e'); if(event.name=='phaseJudge') return player.countCards('j');
return event.name!='phaseUse'||player.countCards('h')>6; return event.name!='phaseUse'||player.countCards('h')>6;
}, },
usable:1, usable:1,
@ -75,7 +75,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return savable; return savable;
})<=1) return 0; })<=1) return 0;
var eff=0; var eff=0;
for(var card of player.getCards('e')){ for(var card of player.getCards('j')){
var cardx; var cardx;
if(card.viewAs) cardx=get.autoViewAs({name:card.viewAs},[card]); if(card.viewAs) cardx=get.autoViewAs({name:card.viewAs},[card]);
else cardx=card; else cardx=card;
@ -106,7 +106,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('sbqiaobian',target); player.logSkill('sbqiaobian',target);
player.loseHp(); player.loseHp();
game.log(player,'跳过了判定阶段'); game.log(player,'跳过了判定阶段');
for(var card of player.getCards('e')){ for(var card of player.getCards('j')){
if(target.canAddJudge(card)){ if(target.canAddJudge(card)){
player.$give(card,target,false); player.$give(card,target,false);
if(card.viewAs) target.addJudge({name:card.viewAs},[card]); if(card.viewAs) target.addJudge({name:card.viewAs},[card]);