112 lines
2.9 KiB
JavaScript
Executable File
112 lines
2.9 KiB
JavaScript
Executable File
'use strict';
|
|
card.ex={
|
|
card:{
|
|
hanbing:{
|
|
fullskin:true,
|
|
type:"equip",
|
|
subtype:"equip1",
|
|
distance:{attackFrom:-1},
|
|
skills:['hanbing_skill'],
|
|
ai:{
|
|
basic:{
|
|
equipValue:2
|
|
}
|
|
},
|
|
},
|
|
renwang:{
|
|
fullskin:true,
|
|
type:"equip",
|
|
subtype:"equip2",
|
|
skills:['renwang_skill'],
|
|
ai:{
|
|
basic:{
|
|
equipValue:8
|
|
},
|
|
},
|
|
},
|
|
},
|
|
skill:{
|
|
hanbing_skill:{
|
|
trigger:{player:'shaHit'},
|
|
direct:true,
|
|
audio:true,
|
|
filter:function(event){
|
|
return event.target.get('he').length>0;
|
|
},
|
|
content:function(){
|
|
"step 0"
|
|
player.choosePlayerCard('是否发动【寒冰剑】?','he',trigger.target,Math.min(2,trigger.target.num('he')),function(button){
|
|
var trigger=_status.event.getParent()._trigger;
|
|
var player=_status.event.player;
|
|
var eff=ai.get.damageEffect(trigger.target,player,player);
|
|
if(ai.get.attitude(player,trigger.target)>0){
|
|
if(eff>=0) return false;
|
|
return 10-ai.get.buttonValue(button);
|
|
}
|
|
if(eff<=0) return ai.get.buttonValue(button);
|
|
if(trigger.target.hp==1) return false;
|
|
if(player.skills.contains('jiu')||player.skills.contains('tianxianjiu')||
|
|
player.skills.contains('luoyi2')||player.skills.contains('reluoyi2')) return false;
|
|
if(_status.event.dialog.buttons.length<2) return -1;
|
|
var num=0;
|
|
for(var i=0;i<_status.event.dialog.buttons.length;i++){
|
|
if(ai.get.buttonValue(_status.event.dialog.buttons[i])>1.5) num++;
|
|
}
|
|
if(num>=2) return ai.get.buttonValue(button)-1.5;
|
|
});
|
|
"step 1"
|
|
if(result.bool){
|
|
trigger.untrigger();
|
|
var cards=[];
|
|
for(var i=0;i<result.links.length;i++) cards.push(result.links[i]);
|
|
player.logSkill('hanbing_skill');
|
|
trigger.unhurt=true;
|
|
trigger.target.discard(cards);
|
|
}
|
|
}
|
|
},
|
|
renwang_skill:{
|
|
trigger:{target:'shaBefore'},
|
|
forced:true,
|
|
priority:6,
|
|
audio:true,
|
|
filter:function(event){
|
|
if(event.player.num('s','unequip')) return false;
|
|
return (event.card.name=='sha'&&get.color(event.card)=='black')
|
|
},
|
|
content:function(){
|
|
trigger.untrigger();
|
|
trigger.finish();
|
|
},
|
|
ai:{
|
|
effect:{
|
|
target:function(card,player){
|
|
var equip1=player.get('e','1');
|
|
if(equip1&&equip1.name=='qinggang') return 1;
|
|
if(player.num('s','unequip')) return;
|
|
if(card.name=='sha'&&get.color(card)=='black') return 'zerotarget';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
translate:{
|
|
hanbing:'寒冰剑',
|
|
renwang:'仁王盾',
|
|
hanbing_bg:'冰',
|
|
renwang_bg:'盾',
|
|
hanbing_skill:'寒冰剑',
|
|
renwang_skill:'仁王盾',
|
|
hanbing_info:'每当你使用杀命中目标后,你可以防止伤害,改为弃置目标两张牌',
|
|
hanbing_skill_info:'每当你使用杀命中目标后,你可以防止伤害,改为弃置目标两张牌',
|
|
renwang_info:'黑色的杀对你无效',
|
|
renwang_skill_info:'黑色的杀对你无效',
|
|
},
|
|
list:[
|
|
["spade",2,'hanbing'],
|
|
["club",2,'renwang'],
|
|
["heart",12,'shandian','thunder'],
|
|
["diamond",12,'wuxie'],
|
|
],
|
|
}
|