This commit is contained in:
libccy 2017-08-04 13:32:46 +08:00
parent 4ac8f8df12
commit 5b1b46d3f1
4 changed files with 70 additions and 4 deletions

View File

@ -49,7 +49,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_bierna:['female','qun',4,['gwfengshi']],
gw_haizhiyezhu:['male','qun',4,['yangfan']],
gw_nitelila:['male','qun',4,['shuangxi']],
gw_nitelila:['male','wei',4,['shuangxi']],
},
characterIntro:{
gw_huoge:'那个老年痴呆?不知道他是活着还是已经被制成标本了!',
@ -65,6 +65,65 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
},
skill:{
shuangxi:{
enable:'phaseUse',
round:2,
filterTarget:function(card,player,target){
if(player.getStat('damage')){
return player.canUse('gw_baishuang',target);
}
else{
return player.canUse('gw_ciguhanshuang',target);
}
},
// changeTarget:function(player,targets){
// if(!player.getStat('damage')){
// game.filterPlayer(function(current){
// return get.distance(targets[0],current,'pure')==1;
// },targets);
// }
// },
selectTarget:function(){
if(_status.event.player.getStat('damage')){
return [1,3];
}
else{
return 1;
}
},
delay:0,
multitarget:true,
multiline:true,
prompt:function(){
if(_status.event.player.getStat('damage')){
return '视为使用一张【白霜】';
}
else{
return '视为使用一张【刺骨寒霜】';
}
},
content:function(){
if(player.getStat('damage')){
player.useCard({name:'gw_baishuang'},targets);
}
else{
player.useCard({name:'gw_ciguhanshuang'},targets);
}
},
ai:{
order:1,
result:{
player:function(player,target){
if(player.getStat('damage')){
return get.effect(target,{name:'gw_baishuang'},player,player);
}
else{
return get.effect(target,{name:'gw_ciguhanshuang'},player,player);
}
}
}
}
},
yangfan:{
trigger:{player:'useCard'},
forced:true,
@ -2246,7 +2305,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_nitelila:'尼斯里拉',
shuangxi:'霜袭',
shuangxi_info:'每两轮限一次,你可以视为使用一张【刺骨寒霜】;若你本回合造成过伤害,改为使用【白霜】',
shuangxi_info:'每两轮限一次,出牌阶段,你可以视为使用一张【刺骨寒霜】;若你本回合造成过伤害,改为使用【白霜】',
gwfengshi:'风蚀',
gwfengshi_info:'结束阶段你可以选择一项1. 为自己施加一个随机负面效果并对两名随机敌人施加一个随机负面效果2. 为自己施加两个随机正面效果,并对一名随机敌人施加一个随机正面效果',
yangfan:'扬帆',

View File

@ -107,7 +107,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
hs_zhihuanhua:['female','wei',3,['huanjue']],
hs_shirencao:['male','wu',3,['srjici']],
hs_kaituozhe:['female','wei',3,['tansuo','yinzong']],
hs_kaituozhe:['female','wu',3,['tansuo','yinzong']],
hs_fachaotuteng:['male','wei',3,['xiyong']],
hs_huolituteng:['male','wei',3,['hllingxi']],

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[
'1.9.33.2',
'1.9.35',
'image/background/huangtian_bg.jpg',
'image/background/ol_bg.jpg',
'image/background/september_bg.jpg',

View File

@ -1563,6 +1563,13 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(_status.rechoose){
delete _status.rechoose;
event.goto(0);
var dialog=event.xdialog;
if(dialog){
for(var i=0;i<dialog.buttons.length;i++){
dialog.buttons[i].classList.remove('unselectable');
dialog.buttons[i].classList.remove('noclick');
}
}
return;
}
if(event.seatsbutton){