无名杀吧 关注:63,622贴子:285,738
  • 1回复贴,共1

这个饮血剑怎么改成不询问 自动发动呢

只看楼主收藏回复

card={
type:"equip",
subtype:"equip1",
frequent:true,
forced:true,
image:"ext:RE:英雄杀/dz_TheBloodthirster.png",
distance:{
attackFrom:-1,
},
ai:{
basic:{
equipValue:6,
order:function(card,player){
if(player&&player.hasSkillTag('reverseEquip')){
return 8.5-get.equipValue(card,player)/20;
}
else{
return 8+get.equipValue(card,player)/20;
}
},
useful:2,
value:function(card,player,index,method){
if(player.isDisabled(get.subtype(card))) return 0.01;
var value=0;
var info=get.info(card);
var current=player.getEquip(info.subtype);
if(current&&card!=current){
value=get.value(current,player);
}
var equipValue=info.ai.equipValue;
if(equipValue==undefined){
equipValue=info.ai.basic.equipValue;
}
if(typeof equipValue=='function'){
if(method=='raw') return equipValue(card,player);
if(method=='raw2') return equipValue(card,player)-value;
return Math.max(0.1,equipValue(card,player)-value);
}
if(typeof equipValue!='number') equipValue=0;
if(method=='raw') return equipValue;
if(method=='raw2') return equipValue-value;
return Math.max(0.1,equipValue-value);
},
},
result:{
target:function(player,target,card){
return get.equipResult(player,target,card.name);
},
},
},
skills:["dz_TheBloodthirster_skill"],
enable:true,
selectTarget:-1,
filterTarget:function(card,player,target){
return target==player;
},
modTarget:true,
allowMultiple:false,
content:function(){
if(cards.length&&get.position(cards[0],true)=='o') target.equip(cards[0]);
},
toself:true,
fullimage:true,
}


IP属地:贵州1楼2022-11-27 17:22回复
    去dz_TheBloodthirster_skill里面加上frequent:true,


    IP属地:安徽来自Android客户端2楼2022-11-27 23:51
    回复