This commit is contained in:
libccy 2017-03-31 12:15:29 +08:00
parent d6887a8b3c
commit a2ee426e63
3 changed files with 49 additions and 14 deletions

View File

@ -67,13 +67,13 @@ character.hearth={
hs_hudunren:['male','shu',2,['hhudun']], hs_hudunren:['male','shu',2,['hhudun']],
hs_nate:['male','wu',4,['chuidiao']], hs_nate:['male','wu',4,['chuidiao']],
hs_jiaziruila:['male','wu',4,['hannu']], hs_jiaziruila:['male','wu',4,['hannu']],
// hs_shifazhe:['male','wei',3,['jizhi','shifa']], hs_shifazhe:['male','wei',3,['shifa']],
hs_lafamu:['male','shu',4,['xieneng']], hs_lafamu:['male','shu',4,['xieneng']],
hs_yelise:['female','wei',3,['xunbao','zhuizong']], hs_yelise:['female','wei',3,['xunbao','zhuizong']],
hs_fandral:['male','shu',4,['nuyan','chouhuo']], hs_fandral:['male','shu',4,['nuyan','chouhuo']],
hs_hallazeal:['male','wei',4,['shengteng','yuansu']], hs_hallazeal:['male','wei',4,['shengteng','yuansu']],
// hs_nzoth:['male','shu',4,['nuyan']], hs_nzoth:['male','shu',4,['mengye']],
hs_walian:['male','shu',4,['wzhanyi']], hs_walian:['male','shu',4,['wzhanyi']],
// hs_pengpeng:['male','qun',4,['zhadan']], // hs_pengpeng:['male','qun',4,['zhadan']],
// hs_yashaji:['male','wei',3,[]], // hs_yashaji:['male','wei',3,[]],
@ -2641,17 +2641,39 @@ character.hearth={
forced:true, forced:true,
content:function(){ content:function(){
'step 0' 'step 0'
var players=game.filterPlayer();
var list=[]; var list=[];
for(var i in lib.card){ var target=player.getEnemies().randomGet();
if(!lib.translate[i+'_info']) continue; for(var i=0;i<lib.inpile.length;i++){
if(lib.card[i].mode&&lib.card[i].mode.contains(lib.config.mode)==false) continue; if(lib.card[lib.inpile[i]].type=='trick'){
if(lib.card[i].type=='trick') list.push(i); list.push(lib.inpile[i]);
}
} }
for(var i=0;i<players.length;i++){ player.gain(game.createCard(list.randomGet()));
players[i].gain(game.createCard(list.randomGet())); player.$draw();
players[i].$draw(); if(target){
target.gain(game.createCard(list.randomGet()));
target.$draw();
target.addExpose(0.2);
player.line(target,'green');
} }
'step 1'
game.delay();
},
group:'shifa_draw',
subSkill:{
draw:{
trigger:{player:'useCard'},
frequent:true,
filter:function(event){
return (get.type(event.card)=='trick'&&event.cards[0]&&event.cards[0]==event.card);
},
content:function(){
player.draw();
}
}
},
ai:{
threaten:1.5
} }
}, },
yuanzheng:{ yuanzheng:{
@ -6092,6 +6114,8 @@ character.hearth={
hs_fenjie:'芬杰', hs_fenjie:'芬杰',
hs_wujiyuansu:'无羁元素', hs_wujiyuansu:'无羁元素',
mengye:'梦魇',
mengye_info:'在一名其他角色的回合开始前,若你的武将牌正面朝上,你可以翻面并代替其进行一回合行动',
fuhua:'腐化', fuhua:'腐化',
fuhua2:'腐化', fuhua2:'腐化',
fuhua_info:'出牌阶段你可以将一张毒交给一名没有魔血技能的其他角色该角色选择一项1. 获得技能魔血此后每个出牌阶段开始时需交给你一张牌2. 视为你对其使用一张决斗,若你因此受到伤害,本局不能再对其发动腐化', fuhua_info:'出牌阶段你可以将一张毒交给一名没有魔血技能的其他角色该角色选择一项1. 获得技能魔血此后每个出牌阶段开始时需交给你一张牌2. 视为你对其使用一张决斗,若你因此受到伤害,本局不能再对其发动腐化',
@ -6233,8 +6257,8 @@ character.hearth={
lianzhan:'连斩', lianzhan:'连斩',
lianzhan_info:'每当你造成一次伤害,若此伤害是你本回合第一次造成伤害,你摸两张牌;否则你增加一点体力上限并 回复一点体力', lianzhan_info:'每当你造成一次伤害,若此伤害是你本回合第一次造成伤害,你摸两张牌;否则你增加一点体力上限并 回复一点体力',
shifa:'嗜法', shifa:'魔瘾',
shifa_info:'锁定技,出牌阶段开始时,你令场上所有角色各获得一张随机锦囊牌', shifa_info:'锁定技,每当你使用一张非转化的普通锦囊牌,你摸一张牌;出牌阶段开始时,你令你与一名随机敌人各获得一张随机普通锦囊牌',
yuanzheng:'远征', yuanzheng:'远征',
yuanzheng_info:'每当你对距离1以外的角色使用一张牌你可以弃置目标区域内的一张牌', yuanzheng_info:'每当你对距离1以外的角色使用一张牌你可以弃置目标区域内的一张牌',
bzhuiji:'追击', bzhuiji:'追击',

View File

@ -402,6 +402,7 @@ window.characterRank={
'swd_jiting', 'swd_jiting',
'hs_nozdormu', 'hs_nozdormu',
'zhoucang', 'zhoucang',
'hs_shifazhe',
], ],
b:[ b:[
'sp_daqiao', 'sp_daqiao',

View File

@ -40495,8 +40495,18 @@
attitude:function(from,to){ attitude:function(from,to){
if(!from||!to) return 0; if(!from||!to) return 0;
var att=ai.get.rawAttitude.apply(this,arguments); var att=ai.get.rawAttitude.apply(this,arguments);
if(from.isMad()) return -att; if(from.isMad()) att=-att;
if(to.isMad()&&att>0) return 0; if(to.isMad()&&att>0) att=0;
if(!_status.tempnofake){
_status.tempnofake=true;
if(from.ai.modAttitudeFrom){
att=from.ai.modAttitudeFrom(from,to,att);
}
if(to.ai.modAttitudeTo){
att=to.ai.modAttitudeTo(from,to,att);
}
delete _status.tempnofake;
}
return att; return att;
}, },
useful:function(card){ useful:function(card){