Merge pull request #390 from PZ157/PR-Branch

加伤标签筛选
This commit is contained in:
Spmario233 2023-09-26 00:18:39 +08:00 committed by GitHub
commit 1746425bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View File

@ -689,7 +689,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
delete player.storage.jiu;
},
ai:{
damageBonus:true
damageBonus:true,
skillTagFilter:function(player,tag,arg){
if(tag==='damageBonus') return arg&&arg.card&&arg.card.name==='sha';
}
},
group:'jiu2'
},

View File

@ -2931,7 +2931,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(get.attitude(player,target)>0&&target.hp>1){
return 0;
}
if(get.attitude(player,target)<0&&!player.hasSkillTag('damageBonus')){
if(get.attitude(player,target)<0&&!player.hasSkillTag('damageBonus','e',{
target:target,
card:card
})){
if(card.name=='sha') return;
var sha=false;
player._shibei_tmp=true;
@ -12605,7 +12608,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger.num++;
},
ai:{
damageBonus:true
damageBonus:true,
skillTagFilter:function(player,tag,arg){
if(tag==='damageBonus') return arg&&arg.card&&(arg.card.name==='sha'||arg.card.name==='juedou');
}
}
},
reganglie:{

View File

@ -3247,7 +3247,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addTempSkill('linyun4','shaAfter')
}
},
linyun4:[],
linyun4:{},
bofeng:{
mod:{
targetInRange:function(card,player,target){