From 4f1ade4ee73564fb8952268b955b40cf2283eb66 Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 2 Dec 2017 10:55:09 +0800 Subject: [PATCH] l --- character/sp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/character/sp.js b/character/sp.js index 468efc85a..6a3b3e52e 100644 --- a/character/sp.js +++ b/character/sp.js @@ -755,6 +755,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var equip1=get.cardPile2(function(card){ return get.subtype(card)=='equip1'; }); + if(!equip1){ + player.popup('连计失败'); + game.log('牌堆中无装备'); + event.finish(); + return; + } target.$draw(equip1); target.equip(equip1); game.delay();