Merge pull request #865 from PZ157/PR-Branch

bugfix
This commit is contained in:
Spmario233 2024-01-27 19:53:59 +08:00 committed by GitHub
commit 51fedd5462
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View File

@ -3016,8 +3016,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
erika_yousheng:{
init:(player)=>{
player.addSkill('erika_yousheng_mamori');
},
dutySkill:true,
group:['erika_yousheng_achieve','erika_yousheng_fail','erika_yousheng_mamori'],
group:['erika_yousheng_achieve','erika_yousheng_fail'],
trigger:{global:'useCardToTarget'},
direct:true,
filter(event,player){

View File

@ -581,7 +581,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
target.damage('nosource');
break;
case '鹰':
player.gain(target.getGainableCards(player,'he'),target,'giveAuto');
player.gain(target.getGainableCards(player,'he').randomGet(),target,'giveAuto');
break;
case '熊':
target.discard(target.getGainableCards(player,'e').randomGet()).discarder=player;

View File

@ -11905,6 +11905,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
ai:{
filterDamage:true,
skillTagFilter:(player,tag,arg)=>{
return arg&&arg.jiu==true;
},
effect:{
target:(card,player,target)=>{
if(target.hp<=0&&target.hasSkill('zhenlie_lose')&&get.tag(card,'recover')) return [1,1.2];