From fa5ef6a2582c376afb6763a6fce43b3c99be7859 Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 10 Dec 2015 11:21:56 +0800 Subject: [PATCH] zhiba --- character/mountain.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/character/mountain.js b/character/mountain.js index 25f55e34a..03d0895e2 100755 --- a/character/mountain.js +++ b/character/mountain.js @@ -697,9 +697,19 @@ character.mountain={ expose:0.2, result:{ target:function(player){ + if(player.num('h')<=player.hp) return false; + var maxnum=0; + var cards2=game.zhu.get('h'); + for(var i=0;imaxnum){ + maxnum=cards2[i].number; + } + } + if(maxnum>10) maxnum=10; + if(maxnum<5&&cards2.length>1) maxnum=5; var cards=player.get('h'); for(var i=0;i