'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