铁索结算

This commit is contained in:
libccy 2015-09-10 21:56:57 +08:00
parent cee0d3bb98
commit bdfb33a3f6
8 changed files with 41 additions and 16 deletions

View File

@ -1,2 +1,4 @@
1.2.11
火攻bug
铁索结算问题
酒杀AI

View File

@ -35,6 +35,13 @@ card.extra={
if(target&&target==_status.dying) return 2;
var shas=target.get('h','sha');
var ok=false;
if(player.num('h','sha')>1){
if(player.num('e','zhuge')) return 0;
if(player.skills.contains('paoxiao')) return 0;
if(player.skills.contains('tanlnin3')) return 0;
if(player.skills.contains('zhaxiang2')) return 0;
if(player.skills.contains('fengnu')) return 0;
}
if(shas.length){
for(var i=0;i<shas.length;i++){
if(lib.filter.filterCard(shas[i],target)){

View File

@ -889,7 +889,7 @@ card.swd={
trigger:{source:'damageEnd'},
forced:true,
filter:function(event,player){
return event.card&&event.card.name=='sha'
return event.card&&event.card.name=='sha'&&player.hp<player.maxHp;
},
content:function(){
player.recover(trigger.num);

View File

@ -371,11 +371,12 @@ character.extra={
wuhun:{
trigger:{player:'dieBegin'},
forced:true,
popup:false,
filter:function(event){
return event.source!=undefined;
},
content:function(){
trigger.source.loseHp(trigger.source.hp);
trigger.source.addSkill('wuhun2');
},
ai:{
threaten:function(player,target){
@ -399,6 +400,14 @@ character.extra={
}
}
},
wuhun2:{
trigger:{global:'dieAfter'},
forced:true,
content:function(){
player.loseHp(player.hp);
player.removeSkill('wuhun2');
}
},
guixin:{
trigger:{player:'damageEnd'},
check:function(event,player){
@ -1038,6 +1047,7 @@ character.extra={
wushen:'武神',
wushen_info:'锁定技,你的红桃手牌视为杀;锁定技,你使用红桃杀时无距离限制。',
wuhun:'武魂',
wuhun2:'武魂',
wuhun_info:'锁定技,杀死你的角色立即进入濒死状态',
shelie:'涉猎',
gongxin:'攻心',

View File

@ -20,7 +20,7 @@ character.hearth={
hs_antonidas:['male','wei',3,['yanshu','bingshuang'],['fullskin']],
hs_alakir:['male','wei',3,['fengnu','shengdun'],['fullskin']],
hs_zhouzhuo:['male','qun',3,['jubao','qice'],['fullskin']],
hs_yngvar:['male','wei',3,['huanwu'],['fullskin']],
hs_yngvar:['male','qun',3,['huanwu'],['fullskin']],
hs_bchillmaw:['male','wei',6,['hanshuang','bingshi'],['fullskin']],
hs_malorne:['male','wu',3,['shenen','chongsheng'],['fullskin']],
@ -55,8 +55,7 @@ character.hearth={
},
ai:{
threaten:1.8,
order:function(item,player){
console.log(item,player);
order:function(name,player){
return 10;
},
result:{
@ -127,9 +126,7 @@ character.hearth={
ai:{
order:1,
result:{
player:function(player){
return (player.num('h')<=1)?1:0;
}
player:1
}
}
},
@ -1483,7 +1480,7 @@ character.hearth={
trigger:{source:'damageBegin'},
forced:true,
filter:function(event){
return event.card&&get.type(event.card)=='trick';
return event.card&&get.type(event.card)=='trick'&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2';
},
content:function(){
trigger.num++;
@ -1508,7 +1505,7 @@ character.hearth={
trigger:{source:'damageBegin'},
forced:true,
filter:function(event){
return event.card&&event.card.name=='sha';
return event.card&&event.card.name=='sha'&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2';
},
content:function(){
trigger.num++;

View File

@ -1065,7 +1065,7 @@ character.swd={
guaili:{
trigger:{source:'damageBegin'},
filter:function(event){
return event.card&&event.card.name=='sha';
return event.card&&event.card.name=='sha'&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2';
},
forced:true,
content:function(){
@ -3807,7 +3807,7 @@ character.swd={
forced:true,
popup:false,
filter:function(event,player){
return event.card&&event.card.name=='sha'&&player.storage.liaoyuan>0;
return event.card&&event.card.name=='sha'&&player.storage.liaoyuan>0&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2';
},
content:function(){
trigger.num+=player.storage.liaoyuan;

View File

@ -1319,8 +1319,8 @@ character.xianjian={
},
tianshe2:{
trigger:{source:'damageAfter'},
filter:function(event){
if(event.nature) return true;
filter:function(event,player){
if(event.nature&&player.hp<player.maxHp) return true;
},
forced:true,
content:function(){

View File

@ -11643,13 +11643,22 @@
cheat.z('caopi');
},
cc:function(){
cheat.z('recaocao');
cheat.z('re_caocao');
},
ls:function(){
cheat.z('liushan');
},
zj:function(){
cheat.z('spzhangjiao');
cheat.z('diy_zhangjiao');
},
sc:function(){
cheat.z('sunce');
},
lc:function(){
cheat.z('liushan');
},
lb:function(){
cheat.z('liubei');
}
}
window.countGroups=function(){