'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, filter:function(event){ return event.target.get('he').length>0; }, content:function(){ "step 0" player.choosePlayerCard('是否发动【寒冰剑】?','he',trigger.target,[1,2],function(button){ 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')) 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