This commit is contained in:
libccy 2016-07-31 01:04:31 +08:00
parent 588920ae41
commit f10fcc15e2
3 changed files with 18 additions and 10 deletions

View File

@ -6361,7 +6361,7 @@ character.swd={
} }
return '是否对'+get.translation(list)+'发动【兰芷】?'; return '是否对'+get.translation(list)+'发动【兰芷】?';
}, },
check:function(){ check:function(event,player){
var list=[]; var list=[];
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
if(game.players[i].hp<game.players[i].maxHp&&game.players[i].hp<=player.hp){ if(game.players[i].hp<game.players[i].maxHp&&game.players[i].hp<=player.hp){

View File

@ -201,6 +201,7 @@ character.xianjian={
filter:function(event,player){ filter:function(event,player){
return player.num('h','shan')>0; return player.num('h','shan')>0;
}, },
usable:1,
filterCard:{name:'shan'}, filterCard:{name:'shan'},
discard:false, discard:false,
prepare:function(cards,player,targets){ prepare:function(cards,player,targets){
@ -240,13 +241,24 @@ character.xianjian={
}, },
content:function(){ content:function(){
"step 0" "step 0"
player.damage(player.storage.tianfu3.isAlive()?player.storage.tianfu3:'nosource'); if(player.storage.tianfu3&&player.storage.tianfu3.isAlive()){
player.damage(player.storage.tianfu3);
player.storage.tianfu3.line(player,'thunder');
}
else{
player.damage('nosource');
}
"step 1" "step 1"
var he=player.get('he');
if(he.length){
player.discard(he.randomGet());
}
"step 2"
player.$throw(player.storage.tianfu2); player.$throw(player.storage.tianfu2);
ui.discardPile.appendChild(player.storage.tianfu2); ui.discardPile.appendChild(player.storage.tianfu2);
delete player.storage.tianfu2; delete player.storage.tianfu2;
delete player.storage.tianfu3; delete player.storage.tianfu3;
player.removeSkill('tianfu2') player.removeSkill('tianfu2');
}, },
group:'tianfu3', group:'tianfu3',
intro:{ intro:{
@ -258,12 +270,7 @@ character.xianjian={
forced:true, forced:true,
popup:false, popup:false,
content:function(){ content:function(){
if(player.storage.tianfu3.isAlive()){ ui.discardPile.appendChild(player.storage.tianfu2);
player.storage.tianfu3.gain(player.storage.tianfu2,'gain2');
}
else{
ui.discardPile.appendChild(player.storage.tianfu2);
}
delete player.storage.tianfu2; delete player.storage.tianfu2;
delete player.storage.tianfu3; delete player.storage.tianfu3;
player.removeSkill('tianfu2'); player.removeSkill('tianfu2');
@ -1382,7 +1389,7 @@ character.xianjian={
tianfu:'天符', tianfu:'天符',
tianfu2:'天符', tianfu2:'天符',
tianfu3:'天符', tianfu3:'天符',
tianfu_info:'你可以将一张闪置于一名其他角色的武将牌上,该角色在下一次造成伤害时受到来自你的一点伤害,若该角色死亡,你将闪收回,否则将闪置于弃牌堆', tianfu_info:'出牌阶段,你可以将一张闪置于一名其他角色的武将牌上,该角色在下一次造成伤害时受到来自你的一点雷属性伤害并随机弃置一张牌,然后将此牌置入弃牌堆',
shuiyun:'水蕴', shuiyun:'水蕴',
shuiyun_bg:'蕴', shuiyun_bg:'蕴',
shuiyun2:'水蕴', shuiyun2:'水蕴',

View File

@ -13,6 +13,7 @@ window.noname_update={
'character/sp.js', 'character/sp.js',
'character/shenhua.js', 'character/shenhua.js',
'character/yxs.js', 'character/yxs.js',
'character/xianjian.js',
'character/rank.js', 'character/rank.js',
'card/swd.js', 'card/swd.js',
'card/hearth.js', 'card/hearth.js',