This commit is contained in:
libccy 2017-05-07 17:04:26 +08:00
parent 1e36908ff5
commit 5796abb8c9
3 changed files with 30 additions and 33 deletions

View File

@ -805,31 +805,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ywuhun:{ ywuhun:{
trigger:{player:'phaseBefore'}, trigger:{player:'phaseBefore'},
forced:true, forced:true,
alter:true,
filter:function(event){ filter:function(event){
return event.parent.name!='ywuhun'; return event.parent.name!='ywuhun';
}, },
intro:{ intro:{
content:function(storage,player){ content:'回合结束后,场上及牌堆中的牌将恢复到回合前的状态'
var str='回合结束后,场上及牌堆中的牌将恢复到回合前的状态';
var list=[];
for(var i in player.disabledSkills){
if(player.disabledSkills[i].contains('ywuhun')){
list.push(i)
}
}
list.remove('ywuhun');
if(list.length){
str+='<br><br>失效技能:';
for(var i=0;i<list.length;i++){
if(lib.translate[list[i]+'_info']){
str+=get.translation(list[i])+'、';
}
}
str=str.slice(0,str.length-1);
}
return str;
}
}, },
video:function(player,data){ video:function(player,data){
for(var i in data){ for(var i in data){
@ -891,12 +871,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
'step 1' 'step 1'
player.markSkill('ywuhun'); player.markSkill('ywuhun');
if(get.is.altered('ywuhun')){ player.addSkill('ywuhun_end');
player.disableSkill('ywuhun',player.getSkills(true,false));
}
player.phase(); player.phase();
'step 2' 'step 2'
player.enableSkill('ywuhun'); player.removeSkill('ywuhun_end');
game.delay(0.5); game.delay(0.5);
'step 3' 'step 3'
game.animate.window(1); game.animate.window(1);
@ -985,6 +963,25 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
} }
ui.updatehl(); ui.updatehl();
},
subSkill:{
end:{
trigger:{source:'damageEnd'},
priority:9,
forced:true,
popup:false,
silent:true,
content:function(){
var evt=_status.event.getParent('ywuhun');
if(evt){
_status.event=evt;
game.resetSkills();
}
},
ai:{
jueqing:true
}
}
} }
}, },
fenglue:{ fenglue:{
@ -3944,8 +3941,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
yanshi:'偃师', yanshi:'偃师',
yanshi_info:'觉醒技结束阶段若你累计有4个回合使用过机关牌你增加一点体力和体力上限然后用随机装备填满你的装备区', yanshi_info:'觉醒技结束阶段若你累计有4个回合使用过机关牌你增加一点体力和体力上限然后用随机装备填满你的装备区',
ywuhun:'雾魂', ywuhun:'雾魂',
ywuhun_info:'锁定技,回合开始前,你获得一个额外的回合,并在此回合结束后将场上及牌堆的所有牌恢复至回合前的状态', ywuhun_info:'锁定技,回合开始前,你获得一个额外的回合,并在此回合结束后复原场上及牌堆中的所有牌;当你在此回合中造成伤害后,终止所有结算并结束此回合',
ywuhun_info_alter:'锁定技,回合开始前,你获得一个额外的回合(此回合中你的所有技能被禁用),并在此回合结束后将场上及牌堆的所有牌恢复至回合前的状态',
feichen:'飞尘', feichen:'飞尘',
feichen_info:'', feichen_info:'',
tanhua:'昙华', tanhua:'昙华',

View File

@ -6106,12 +6106,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 0" "step 0"
player.draw(); player.draw();
"step 1" "step 1"
while(_status.event.name!='phase'){ var evt=_status.event.getParent('phase');
_status.event=_status.event.parent; if(evt){
} game.resetSkills();
game.resetSkills(); _status.event=evt;
_status.event.finish(); _status.event.finish();
_status.event.untrigger(true); _status.event.untrigger(true);
}
}, },
ai:{ ai:{
jueqing:true jueqing:true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 45 KiB