继续优化神马超ai
This commit is contained in:
parent
a81c5c5c9f
commit
f6a70ee223
|
@ -2193,6 +2193,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
intro:{
|
||||
content:'受到的伤害+1且改为雷属性',
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
target:(card,player,target)=>{
|
||||
if(!get.tag(card,'damage')) return;
|
||||
if(target.hasSkillTag('nodamage')||target.hasSkillTag('nothunder')) return 'zeroplayertarget';
|
||||
if(target.hasSkillTag('filterDamage',null,{
|
||||
player:player,
|
||||
card:lib.element.VCard({
|
||||
name:card.name,
|
||||
nature:'thunder'
|
||||
},[card])
|
||||
})) return;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
init:{
|
||||
audio:'shouli',
|
||||
|
@ -2286,6 +2302,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return get.suit(card,current)==suit;
|
||||
});
|
||||
})];
|
||||
},
|
||||
target:(card,player,target)=>{
|
||||
if(card.name==='sha'&&!player.hasSkillTag('directHit_ai',true,{
|
||||
target:target,
|
||||
card:card
|
||||
},true)&&game.hasPlayer(current=>{
|
||||
return current.hasCard(cardx=>{
|
||||
return get.subtype(cardx)==='equip3';
|
||||
},'e');
|
||||
})) return [0, -0.5];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -758,6 +758,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
intro:{
|
||||
content:'受到的伤害+1且改为雷属性',
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
target:(card,player,target)=>{
|
||||
if(!get.tag(card,'damage')) return;
|
||||
if(target.hasSkillTag('nodamage')||target.hasSkillTag('nothunder')) return 'zeroplayertarget';
|
||||
if(target.hasSkillTag('filterDamage',null,{
|
||||
player:player,
|
||||
card:lib.element.VCard({
|
||||
name:card.name,
|
||||
nature:'thunder'
|
||||
},[card])
|
||||
})) return;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
init:{
|
||||
audio:'psshouli',
|
||||
|
@ -900,6 +916,32 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
ai:{
|
||||
threaten:100,
|
||||
reverseEquip:true,
|
||||
ai:{
|
||||
effect:{
|
||||
player:(card,player,target)=>{
|
||||
if(typeof card!=='object') return;
|
||||
let suit=get.suit(card);
|
||||
if(!lib.suit.contains(suit)||player.hasCard(function(i){
|
||||
return get.suit(i,player)==suit;
|
||||
},'h')) return;
|
||||
return [1,game.countPlayer(current=>{
|
||||
return current.countCards('e',card=>{
|
||||
return get.suit(card,current)==suit;
|
||||
});
|
||||
})];
|
||||
},
|
||||
target:(card,player,target)=>{
|
||||
if(card.name==='sha'&&!player.hasSkillTag('directHit_ai',true,{
|
||||
target:target,
|
||||
card:card
|
||||
},true)&&game.hasPlayer(current=>{
|
||||
return current.hasCard(cardx=>{
|
||||
return get.subtype(cardx)==='equip3';
|
||||
},'e');
|
||||
})) return [0, -0.5];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
//战役篇田丰
|
||||
|
|
|
@ -4146,6 +4146,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
logTarget:'source',
|
||||
ai:{
|
||||
maixie_defend:true,
|
||||
threaten:function(player,target){
|
||||
if(target.hp==1) return 0.2;
|
||||
return 1.5;
|
||||
|
|
|
@ -8253,6 +8253,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
ai:{
|
||||
expose:0.5,
|
||||
maixie_defend:true
|
||||
},
|
||||
},
|
||||
"yechou2":{
|
||||
|
|
Loading…
Reference in New Issue