diff --git a/character/huicui.js b/character/huicui.js index c48074c08..e2186629d 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -8235,6 +8235,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return max2; }, audio:2, + init:function(player){ + game.addGlobalSkill('fengxiang_use'); + }, + onremove:function(player){ + game.removeGlobalSkill('fengxiang_use'); + }, trigger:{player:'damageEnd'}, forced:true, filter:function(event,player){ @@ -8265,6 +8271,26 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.draw(); }, }, + use:{ + mod:{ + aiOrder:function(player,card,num){ + if(num>0&&get.itemtype(card)==='card'&&card.hasGaintag('fengxiang_tag')&&game.hasPlayer(current=>{ + return current.hasSkill('fengxiang')&&get.attitude(player,current)>0; + })) return num+10; + } + }, + trigger:{player:'dieAfter'}, + filter:function(event,player){ + for(let i of game.players){ + if(i.hasSkill('fengxiang')) return false; + } + return true; + }, + silent:true, + content:function(){ + game.removeGlobalSkill('fengxiang_use'); + } + } }, }, //阚泽