This commit is contained in:
parent
2227cf70a5
commit
7124f3cd83
|
@ -66,7 +66,7 @@ card.extra={
|
|||
target:function(player,target){
|
||||
if(target&&target.hp<=0) return 2;
|
||||
if(lib.config.mode=='stone'&&!player.isMin()){
|
||||
if(player.getActCount()+1>=player.actcount) return false;
|
||||
if(player.getActCount()+1>=player.actcount) return 0;
|
||||
}
|
||||
var shas=player.get('h','sha');
|
||||
if(shas.length>1){
|
||||
|
|
|
@ -604,31 +604,25 @@ card.yunchou={
|
|||
fullskin:true,
|
||||
type:'trick',
|
||||
enable:true,
|
||||
filterTarget:function(card,player,target){
|
||||
return target.num('he')>0;
|
||||
},
|
||||
filterTarget:true,
|
||||
content:function(){
|
||||
"step 0"
|
||||
target.chooseToDiscard('he',[1,2]).ai=function(card){
|
||||
target.chooseToDiscard('he',2).ai=function(card){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(ai.get.damageEffect(target,player,target,'fire')>=0&&
|
||||
!target.hasSkillTag('maixie')) return 0;
|
||||
if(player.get('s').contains('xinwuyan')) return 0;
|
||||
if(target.get('s').contains('xinwuyan')) return 0;
|
||||
if(target.hasSkillTag('maixie')&&target.hp>1&&ui.selected.cards.length){
|
||||
return 0;
|
||||
}
|
||||
if(card.name=='tao') return 0;
|
||||
if(target.hp==1&&card.name=='jiu') return 0;
|
||||
if(get.type(card)!='basic'){
|
||||
if(target.hp==1&&get.type(card)!='basic'){
|
||||
return 10-ai.get.value(card);
|
||||
}
|
||||
return 8-ai.get.value(card);
|
||||
};
|
||||
"step 1"
|
||||
if(!result.bool||result.cards.length<2){
|
||||
if(result.bool) target.damage(2-result.cards.length,'fire');
|
||||
else target.damage(2,'fire');
|
||||
if(!result.bool){
|
||||
target.damage('fire');
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
@ -642,17 +636,20 @@ card.yunchou={
|
|||
if(target.hasSkillTag('nofire')) return 0;
|
||||
var nh=target.num('he');
|
||||
if(target==player) nh--;
|
||||
if(nh==2) return -5;
|
||||
if(nh==1) return -6;
|
||||
return -3;
|
||||
switch(nh){
|
||||
case 0:case 1:return -2;
|
||||
case 2:return -1.5;
|
||||
case 3:return -1;
|
||||
default:return -0.7;
|
||||
}
|
||||
}
|
||||
},
|
||||
tag:{
|
||||
damage:2,
|
||||
fireDamage:2,
|
||||
natureDamage:2,
|
||||
discard:2,
|
||||
loseCard:2,
|
||||
damage:1,
|
||||
fireDamage:1,
|
||||
natureDamage:1,
|
||||
discard:1,
|
||||
loseCard:1,
|
||||
position:'he',
|
||||
}
|
||||
}
|
||||
|
@ -912,7 +909,7 @@ card.yunchou={
|
|||
hongshui:'洪水',
|
||||
hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置3张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去一点体力,X至少为1',
|
||||
liuxinghuoyu:'流星火羽',
|
||||
liuxinghuoyu_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其弃置0~2张牌,并受到2-X点火焰伤害,X为弃置的卡牌数',
|
||||
liuxinghuoyu_info:'出牌阶段,对一名角色使用,令目标弃置2张牌,或受到一点火焰伤害',
|
||||
dujian:'毒箭',
|
||||
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
|
||||
qiankundai:'乾坤袋',
|
||||
|
|
|
@ -1737,7 +1737,7 @@ character.hearth={
|
|||
trigger:{player:'turnOverAfter'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return !player.skills.contains('xmojian2');
|
||||
return player.isTurnedOver();
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
|
@ -1750,14 +1750,12 @@ character.hearth={
|
|||
if(result.bool){
|
||||
player.logSkill('xmojian');
|
||||
player.useCard({name:'sha'},result.targets,false);
|
||||
player.addTempSkill('xmojian2','phaseAfter');
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
expose:0.2,
|
||||
}
|
||||
},
|
||||
xmojian2:{},
|
||||
xshixin:{
|
||||
trigger:{source:'damageEnd'},
|
||||
forced:true,
|
||||
|
@ -4434,7 +4432,7 @@ character.hearth={
|
|||
xshixin:'蚀心',
|
||||
xshixin_info:'锁定技,每当你对一名其他角色造成一次伤害,受伤害角色与你各流失一点体力',
|
||||
xmojian:'魔箭',
|
||||
xmojian_info:'每当你翻面时,你可以指定一名角色视为对其使用了一张杀,每回合最多发动一次',
|
||||
xmojian_info:'每当你的武将牌翻至背面时,你可以指定一名角色视为对其使用了一张杀',
|
||||
enze:'恩泽',
|
||||
enze_info:'出牌阶段限一次,你可以指定一名角色令其手牌数与你相等(至多摸三张牌)',
|
||||
chongsheng:'重生',
|
||||
|
|
|
@ -3402,11 +3402,13 @@ character.swd={
|
|||
for(j=0;j<storage[i].equips.length;j++){
|
||||
if(storage[i].equips[j].parentNode==ui.discardPile||
|
||||
storage[i].equips[j].parentNode==ui.cardPile)
|
||||
storage[i].equips[j].style.transform='';
|
||||
player.node.equips.appendChild(storage[i].equips[j]);
|
||||
}
|
||||
for(j=0;j<storage[i].judges.length;j++){
|
||||
if(storage[i].judges[j].parentNode==ui.discardPile||
|
||||
storage[i].judges[j].parentNode==ui.cardPile){
|
||||
storage[i].judges[j].style.transform='';
|
||||
storage[i].judges[j].viewAs=storage[i].viewAs[j];
|
||||
player.node.judges.appendChild(storage[i].judges[j]);
|
||||
}
|
||||
|
@ -3438,14 +3440,10 @@ character.swd={
|
|||
game.pause();
|
||||
'step 4'
|
||||
if(trigger.name=='phase'){
|
||||
// for(var i=0;i<game.players.length;i++){
|
||||
// if(game.players[i].hp<event.player.hp){
|
||||
// event.player.loseHp();
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
var player=event.player;
|
||||
if(player.hp>1) player.loseHp();
|
||||
if(player.num('h')){
|
||||
player.chooseToDiscard('h',true);
|
||||
}
|
||||
}
|
||||
ui.updatehl();
|
||||
}
|
||||
|
@ -4600,52 +4598,18 @@ character.swd={
|
|||
ai:{
|
||||
expose:0.3
|
||||
},
|
||||
// mod:{
|
||||
// targetInRange:function(){
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
// group:'polang2'
|
||||
},
|
||||
jikong:{
|
||||
trigger:{player:'loseEnd'},
|
||||
trigger:{player:['loseEnd','phaseBegin']},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
if(event.name=='phase') return true;
|
||||
if(player.num('h')) return false;
|
||||
for(var i=0;i<event.cards.length;i++){
|
||||
if(event.cards[i].original=='h') return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseTarget('是否发动【亟空】?').ai=function(target){
|
||||
var eff=ai.get.damageEffect(target,player,target,'thunder');
|
||||
return ai.get.attitude(player,target)*(eff-target.num('e'));
|
||||
}
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.logSkill('jikong',result.targets);
|
||||
event.target=result.targets[0];
|
||||
event.target.damage('thunder');
|
||||
}
|
||||
else{
|
||||
event.finish();
|
||||
}
|
||||
// "step 2"
|
||||
// player.recover();
|
||||
},
|
||||
group:'jikong2',
|
||||
ai:{
|
||||
threaten:function(player,target){
|
||||
if(target.num('h')) return 0.8;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
},
|
||||
jikong2:{
|
||||
trigger:{player:'phaseBegin'},
|
||||
direct:true,
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseTarget('是否发动【亟空】?',function(card,player,target){
|
||||
|
@ -4660,7 +4624,10 @@ character.swd={
|
|||
}
|
||||
},
|
||||
ai:{
|
||||
expose:0.2,
|
||||
threaten:function(player,target){
|
||||
if(target.num('h')) return 0.8;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
},
|
||||
xielei:{
|
||||
|
@ -7689,7 +7656,7 @@ character.swd={
|
|||
polang_info:'每当你造成一次伤害,可以一张对方的装备牌',
|
||||
jikong:'亟空',
|
||||
jikong2:'亟空',
|
||||
jikong_info:'每当你失去最后一手手牌,可以对一名角色造成一点雷电伤害;回合开始阶段,你可以指定一名角色视为对其使用一张雷杀',
|
||||
jikong_info:'当你失去最后一手手牌,或在回合开始阶段时,你可以指定一名角色视为对其使用一张雷杀',
|
||||
xiangu:'仙骨',
|
||||
xiangu_info:'锁定技,你的手牌上限不会因体力值的减少而减少。',
|
||||
yiesheng:'回雪',
|
||||
|
@ -7825,7 +7792,7 @@ character.swd={
|
|||
shengshou_info:'你可以将一张黑色手牌当作草药使用',
|
||||
susheng_info:'在任意一名角色即将死亡时,你可以弃置一张手牌防止其死亡,并将其体力回复至1,每回合限发动一次',
|
||||
zhanlu_info:'出牌阶段,你可以弃置一张黑桃牌令至多3名角色各回复一点体力',
|
||||
kunlunjing_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束时的位置,若你此时的体力值大于1,你流失一点体力',
|
||||
kunlunjing_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束时的位置,然后弃置一张手牌',
|
||||
swd_xiuluo_info:'回合开始阶段,你可以弃一张手牌来弃置你判断区里的一张延时类锦囊(必须花色相同)',
|
||||
xianyin_info:'出牌阶段,你可以令所有判定区内有牌的角色弃置判定区内的牌,然后交给你一张手牌',
|
||||
qiaoxie_info:'每当你装备一张牌,可摸一张牌,每当你失去一张装备牌(不含替换),你可以弃置其他角色的一张牌',
|
||||
|
|
|
@ -2,6 +2,7 @@ window.noname_update={
|
|||
version:'1.8.12',
|
||||
changeLog:[
|
||||
'新卡背',
|
||||
'修bug',
|
||||
],
|
||||
files:{
|
||||
global:[
|
||||
|
@ -14,6 +15,8 @@ window.noname_update={
|
|||
'mode/guozhan.js',
|
||||
'mode/stone.js',
|
||||
'card/standard.js',
|
||||
'card/extra.js',
|
||||
'card/yunchou.js',
|
||||
'character/yijiang.js',
|
||||
'character/shenhua.js',
|
||||
'character/hearth.js',
|
||||
|
|
|
@ -158,7 +158,7 @@ mode.versus={
|
|||
});
|
||||
}
|
||||
_status.videoInited=true;
|
||||
if(_status.mode=='four'||_status.mode=='jiange'||_status.connectMode){
|
||||
if(_status.mode=='four'||_status.mode=='jiange'||_status.connectMode||_status.mode=='two'){
|
||||
info.push(false);
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in New Issue