界诸葛诞bug修复,界张嶷添加展示牌空时机

修复界诸葛诞【功獒】无限制发动次数的bug
界张嶷【怃戎】展示的牌添加showCards时机
This commit is contained in:
mengxinzxz 2023-09-06 12:43:12 +08:00 committed by GitHub
parent 5f4253867f
commit 7c39834f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -332,6 +332,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return !player.getAllHistory('useSkill',evt=>evt.skill=='regongao'&&evt.targets[0]==event.player).length;
},
forced:true,
logTarget:'player',
content:function(){
player.gainMaxHp();
player.recover();
@ -9309,8 +9310,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.$compare(event.card1,target,event.card2);
game.delay(4);
"step 6"
var next=game.createEvent('showCards');
next.player=player;
next.cards=[event.card1];
next.setContent('emptyEvent');
game.log(player,'展示了',event.card1);
"step 7"
var next=game.createEvent('showCards');
next.player=target;
next.cards=[event.card2];
next.setContent('emptyEvent');
game.log(target,'展示了',event.card2);
"step 8"
var name1=get.name(event.card1);
var name2=get.name(event.card2);
if(name1=='sha'&&name2!='shan'){