This commit is contained in:
libccy 2015-12-11 13:07:11 +08:00
parent 9fdcfa7aa0
commit 3725e6d370
8 changed files with 90 additions and 69 deletions

View File

@ -1290,21 +1290,23 @@ character.sp={
threaten:1.2
},
tongji:{
global:'tongji2',
global:'tongji_disable',
unique:true,
gainnable:true,
},
tongji2:{
mod:{
targetEnabled:function(card,player,target){
if(player.skills.contains('tongji')) return;
if(card.name=='sha'){
if(target.skills.contains('tongji')) return;
for(var i=0;i<game.players.length;i++){
if(game.players[i].skills.contains('tongji')){
if(game.players[i].hp<game.players[i].num('h')&&
get.distance(player,game.players[i],'attack')<=1){
return false;
subSkill:{
disable:{
mod:{
targetEnabled:function(card,player,target){
if(player.skills.contains('tongji')) return;
if(card.name=='sha'){
if(target.skills.contains('tongji')) return;
for(var i=0;i<game.players.length;i++){
if(game.players[i].skills.contains('tongji')){
if(game.players[i].hp<game.players[i].num('h')&&
get.distance(player,game.players[i],'attack')<=1){
return false;
}
}
}
}
}
@ -2905,7 +2907,7 @@ character.sp={
audio:2,
trigger:{player:'shaBefore'},
filter:function(event,player){
if(event.skill!='longdan1') return false;
if(event.skill!='longdan_sha') return false;
return event.target.num('h')>0;
},
content:function(){
@ -2918,7 +2920,7 @@ character.sp={
audio:2,
trigger:{player:'respond'},
filter:function(event,player){
if(event.skill!='longdan2'&&event.skill!='longdan1') return false;
if(event.skill!='longdan_shan'&&event.skill!='longdan_sha') return false;
return event.source&&event.source.num('h')>0;
},
content:function(){

View File

@ -405,10 +405,16 @@ character.standard={
return get.color(card)=='black';
},
viewAs:{name:'shan'},
viewAsFilter:function(player){
if(!player.num('h',{color:'black'})) return false;
},
prompt:'将一张黑色牌当闪打出',
check:function(){return 1},
ai:{
respondShan:true,
skillTagFilter:function(player){
if(!player.num('h',{color:'black'})) return false;
},
result:{
target:function(card,player,target,current){
if(get.tag(card,'respondShan')&&current<0) return 0.6
@ -651,6 +657,9 @@ character.standard={
prompt:'将一张红色牌当杀使用或打出',
check:function(card){return 4-ai.get.value(card)},
ai:{
skillTagFilter:function(player){
if(!player.num('he',{color:'red'})) return false;
},
respondSha:true,
}
},
@ -806,60 +815,56 @@ character.standard={
},
content:function(){}
},
test:{
subSkills:{
t1:{},
t2:{}
}
},
longdan:{
group:['longdan1','longdan2']
},
longdan1:{
audio:2,
enable:['chooseToUse','chooseToRespond'],
filterCard:{name:'shan'},
viewAs:{name:'sha'},
viewAsFilter:function(player){
if(!player.num('h','shan')) return false;
},
prompt:'将一张闪当杀使用或打出',
check:function(){return 1},
ai:{
effect:{
target:function(card,player,target,current){
if(get.tag(card,'respondSha')&&current<0) return 0.6
group:['longdan_sha','longdan_shan'],
subSkill:{
sha:{
audio:2,
enable:['chooseToUse','chooseToRespond'],
filterCard:{name:'shan'},
viewAs:{name:'sha'},
viewAsFilter:function(player){
if(!player.num('h','shan')) return false;
},
prompt:'将一张闪当杀使用或打出',
check:function(){return 1},
ai:{
effect:{
target:function(card,player,target,current){
if(get.tag(card,'respondSha')&&current<0) return 0.6
}
},
respondSha:true,
skillTagFilter:function(player){
if(!player.num('h','shan')) return false;
},
order:4,
useful:-1,
value:-1
}
},
respondSha:true,
skillTagFilter:function(player){
if(!player.num('h','shan')) return false;
},
order:4,
useful:-1,
value:-1
}
},
longdan2:{
audio:2,
enable:['chooseToRespond'],
filterCard:{name:'sha'},
viewAs:{name:'shan'},
prompt:'将一张杀当闪打出',
check:function(){return 1},
ai:{
respondShan:true,
skillTagFilter:function(player){
if(!player.num('h','sha')) return false;
},
effect:{
target:function(card,player,target,current){
if(get.tag(card,'respondShan')&&current<0) return 0.6
shan:{
audio:2,
enable:['chooseToRespond'],
filterCard:{name:'sha'},
viewAs:{name:'shan'},
prompt:'将一张杀当闪打出',
check:function(){return 1},
ai:{
respondShan:true,
skillTagFilter:function(player){
if(!player.num('h','sha')) return false;
},
effect:{
target:function(card,player,target,current){
if(get.tag(card,'respondShan')&&current<0) return 0.6
}
},
order:4,
useful:-1,
value:-1
}
},
order:4,
useful:-1,
value:-1
}
}
},
mashu:{

View File

@ -13,7 +13,6 @@ character.wind={
// yuji:['male','qun',3,['guhuo']],
},
skill:{
diyleiji:{
audio:2,
trigger:{player:'respond'},

View File

@ -11684,9 +11684,9 @@
lib.translate[i+'_info']=lib.translate[lib.skill[i].inherit+'_info'];
}
}
if(lib.skill[i].subSkills){
for(var j in lib.skill[i].subSkills){
lib.skill[i+'_'+j]=lib.skill[i].subSkills[j];
if(lib.skill[i].subSkill){
for(var j in lib.skill[i].subSkill){
lib.skill[i+'_'+j]=lib.skill[i].subSkill[j];
lib.translate[i+'_'+j]=lib.translate[i];
}
}
@ -20029,6 +20029,21 @@
window.lib=lib;
window._status=_status;
},
u:function(){
var card={name:'sha'},source=game.me.next;
for(var i=0;i<arguments.length;i++){
if(get.itemtype(arguments[i])=='player'){
source=arguments[i];
}
else if(typeof arguments[i]=='object'){
card=arguments[i];
}
else if(typeof arguments[i]=='string'){
card={name:arguments[i]}
}
}
source.useCard(card,game.me);
},
rank:function(){
var list=lib.rank.s.concat(lib.rank.ap).concat(lib.rank.a).concat(lib.rank.am).
concat(lib.rank.bp).concat(lib.rank.b).concat(lib.rank.bm).concat(lib.rank.c).concat(lib.rank.d);