手杀界袁术【觊玺】改为history判定失去体力

This commit is contained in:
mengxinzxz 2023-10-07 23:07:05 +08:00 committed by GitHub
parent 880997d90a
commit e1111240a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 10 deletions

View File

@ -16325,10 +16325,21 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
yjixi:{ yjixi:{
derivation:'rewangzun', derivation:'rewangzun',
audio:'weidi',
trigger:{player:'phaseJieshuBegin'}, trigger:{player:'phaseJieshuBegin'},
forced:true, forced:true,
filter:function(event,player){ filter:function(event,player){
return player.countMark('yjixi')>=3; if(player.phaseNumber<3) return false;
var num=0;
for(var i=player.actionHistory.length-1;i>=0;i--){
if(!player.actionHistory[i].isMe) continue;
if(_status.globalHistory[i].changeHp.some(evt=>evt.player==player&&evt.getParent().name=='loseHp')) return false;
else{
num++;
if(num>=3) break;
}
}
return true;
}, },
skillAnimation:true, skillAnimation:true,
animationColor:'gray', animationColor:'gray',
@ -16397,7 +16408,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
player.draw(game.countGroup()); player.draw(game.countGroup());
trigger.changeToZero(); trigger.changeToZero();
} },
}, },
xinyongsi2:{ xinyongsi2:{
audio:'yongsi2', audio:'yongsi2',
@ -16412,13 +16423,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 8-get.value(card); return 8-get.value(card);
}; };
'step 1' 'step 1'
if(!result.bool){ if(!result.bool) player.loseHp();
player.loseHp(); },
var num=player.countMark('yjixi');
if(num) player.removeMark('yjixi',num,false);
}
else player.addMark('yjixi',1,false);
}
}, },
lianzhu:{ lianzhu:{
audio:2, audio:2,
@ -24828,7 +24834,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
refuhan:'扶汉', refuhan:'扶汉',
refuhan_info:'限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌然后从X张蜀势力武将牌中选择并获得至多两个技能限定技、觉醒技、隐匿技、使命技、主公技除外。若此时你是体力值最低的角色你回复1点体力X为场上角色数且X∈[4,+∞))。', refuhan_info:'限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌然后从X张蜀势力武将牌中选择并获得至多两个技能限定技、觉醒技、隐匿技、使命技、主公技除外。若此时你是体力值最低的角色你回复1点体力X为场上角色数且X∈[4,+∞))。',
yjixi:'觊玺', yjixi:'觊玺',
yjixi_info:'觉醒技,结束阶段,若你连续三回合没有因〖庸肆〗而失去过体力则你增加1点体力上限并回复1点体力然后选择一项获得技能〖妄尊〗摸两张牌并获得当前主公的主公技。', yjixi_info:'觉醒技,结束阶段,若你已连续三个自己回合未失去过体力则你增加1点体力上限并回复1点体力然后选择一项获得技能〖妄尊〗摸两张牌并获得当前主公的主公技。',
xinyongsi:'庸肆', xinyongsi:'庸肆',
xinyongsi1:'庸肆', xinyongsi1:'庸肆',
xinyongsi2:'庸肆', xinyongsi2:'庸肆',