This commit is contained in:
libccy 2017-04-15 09:59:18 +08:00
parent 9baf6c36ea
commit 2cad67f279
9 changed files with 50 additions and 3 deletions

View File

@ -1258,7 +1258,10 @@ game.import('card',function(){
ai:{
order:2,
result:{
target:-1,
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
return -1;
},
},
useful:[2,0.5],
value:[2,0.5],
@ -1715,7 +1718,10 @@ game.import('card',function(){
value:6,
},
result:{
target:-3
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
return -3;
}
},
}
},
@ -3564,6 +3570,7 @@ game.import('card',function(){
hslingjian_jinjilengdong_equip1:{
trigger:{source:'damageEnd'},
check:function(event,player){
if(event.player.hasSkillTag('noturn')) return 0;
if(event.player.isTurnedOver()){
return get.attitude(player,event.player)>0;
}
@ -3581,6 +3588,7 @@ game.import('card',function(){
hslingjian_jinjilengdong_equip2:{
trigger:{player:'damageEnd'},
check:function(event,player){
if(event.player.hasSkillTag('noturn')) return 0;
if(event.player.isTurnedOver()){
return get.attitude(player,event.source)>0;
}
@ -3621,6 +3629,7 @@ game.import('card',function(){
player.chooseTarget(get.prompt('hslingjian_jinjilengdong_duanzao'),function(card,player,target){
return player!=target&&!target.isTurnedOver();
}).ai=function(target){
if(target.hasSkillTag('noturn')) return 0;
return Math.max(0,-get.attitude(player,target)-2);
};
"step 1"

View File

@ -372,6 +372,7 @@ game.import('character',function(){
player.chooseTarget('是否弃置一枚“忍”,并发动【放逐】?',function(card,player,target){
return player!=target
}).ai=function(target){
if(target.hasSkillTag('noturn')) return 0;
if(target.isTurnedOver()){
return get.attitude(player,target)-1;
}

View File

@ -4118,6 +4118,7 @@ game.import('character',function(){
event.player.isAlive()&&!event.player.isTurnedOver();
},
check:function(event,player){
if(event.player.hasSkillTag('noturn')) return;
if(event.player.isTurnedOver()){
return get.attitude(player,event.player)>0;
}

View File

@ -1319,6 +1319,7 @@ game.import('character',function(){
},
result:{
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
if(player.hasUnknown()) return 0;
return -1;
}

View File

@ -1932,6 +1932,7 @@ game.import('character',function(){
player.chooseTarget(get.prompt('fangzhu'),function(card,player,target){
return player!=target
}).ai=function(target){
if(target.hasSkillTag('noturn')) return 0;
var player=_status.event.player;
if(get.attitude(_status.event.player,target)==0) return 0;
if(get.attitude(_status.event.player,target)>0){

View File

@ -329,6 +329,7 @@ game.import('character',function(){
order:8,
result:{
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
if(target.isTurnedOver()) return 2;
return -0.5;
}

View File

@ -1706,6 +1706,7 @@ game.import('character',function(){
order:1,
result:{
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
if(game.phaseNumber<game.players.length) return 0;
if(game.phaseNumber<game.players.length*2&&player.hp==player.maxHp) return 0;
if(player.hasUnknown()) return 0;
@ -3540,6 +3541,7 @@ game.import('character',function(){
ai:{
result:{
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
var num=game.countPlayer(function(current){
return current.getEquip(1);
});
@ -4524,6 +4526,7 @@ game.import('character',function(){
if(get.is.altered('wangchen')){
return -get.attitude(player,target)/Math.sqrt(target.hp);
}
if(target.hasSkillTag('noturn')) return 0;
return get.attitude(player,target)*(target.isTurnedOver()?1:-1);
}
"step 1"
@ -7419,6 +7422,7 @@ game.import('character',function(){
});
next.logSkill=['ningshuang',trigger.player];
next.ai=function(card){
if(trigger.player.hasSkillTag('noturn')&&trigger.player.isLinked()) return 0;
if(get.attitude(player,trigger.player)<0){
return 9-get.value(card);
}
@ -8905,6 +8909,7 @@ game.import('character',function(){
player.chooseTarget(get.prompt('huanling'),function(card,player,target){
return player!=target;
}).ai=function(target){
if(target.hasSkillTag('noturn')) return 0;
var att=get.attitude(player,target);
if(target.isTurnedOver()){
if(att>0){

View File

@ -4051,6 +4051,7 @@ game.import('character',function(){
threaten:1.8,
result:{
target:function(player,target){
if(target.hasSkillTag('noturn')) return 0;
if(target.isTurnedOver()) return 2;
return -1/(target.countCards('h')+1);
}

View File

@ -1243,6 +1243,19 @@ game.import('mode',function(){
}
}
}
},
trigger:{player:'turnOverBefore'},
priority:20,
forced:true,
filter:function(event,player){
return !player.isTurnedOver();
},
content:function(){
trigger.untrigger();
trigger.finish();
},
ai:{
noturn:true
}
},
honghuangzhili:{
@ -1269,7 +1282,21 @@ game.import('mode',function(){
}
},
boss_shenen:{},
boss_fentian:{},
boss_fentian:{
trigger:{source:'damageBegin'},
forced:true,
content:function(){
trigger.nature='fire';
},
mod:{
cardUsable:function(card){
if(get.color(card)=='red') return Infinity;
},
targetInRange:function(card){
if(get.color(card)=='red') return true;
}
}
},
boss_xingxia:{},
boss_huihuo:{},
boss_chiyi:{},