修复bug

This commit is contained in:
copcap 2023-07-23 01:02:07 +08:00
parent 16f52d8b65
commit 539aa1ab41
3 changed files with 5 additions and 3 deletions

View File

@ -178,9 +178,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
content:function(){
'step 0'
var go=false,d1=true;
var go=false,d1=false;
if(get.attitude(player,trigger.player)>0){
if(trigger.player.hasSkill('jueqing')||trigger.player.hasSkill('gangzhi')) d1=false
d1=true;
if(trigger.player.hasSkill('jueqing')||trigger.player.hasSkill('gangzhi')) d1=false;
for(var target of trigger.targets){
if(!target.mayHaveShan()||trigger.player.hasSkillTag('directHit_ai',true,{
target:target,

View File

@ -415,7 +415,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
rec:{
audio:'guixiu',
trigger:{
player:'logSkillAfter',
player:'logSkill',
},
forced:true,
filter:function(event,player){

View File

@ -2170,6 +2170,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var num=0,numx=target.countCards('h',{name:'sha'}),targetx=target;
for(var i=0; i<numx; i++){
targetx=targetx.next;
if(targetx==player) targetx=targetx.next;
}
var att1=get.attitude(player,target),att2=get.attitude(player,targetx);
if(att1>0&&att2<0) num=0.25;