From 210a813ad5aa377b5366f685f58406072a8e0f92 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 24 Mar 2017 09:41:01 +0800 Subject: [PATCH] r --- character/refresh.js | 4 +++- game/update.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/character/refresh.js b/character/refresh.js index d8e302675..df402ba04 100644 --- a/character/refresh.js +++ b/character/refresh.js @@ -106,16 +106,18 @@ character.refresh={ } if(card.name=='sha'){ if(game.hasPlayer(function(current){ - return ai.get.effect(current,card,player,player)>0 + return player.canUse(card,current)&&ai.get.effect(current,card,player,player)>0 })){ if(card.nature=='fire') return 2.95; if(card.nature=='thunder') return 2.92; return 2.9; } + return 0; } if(card.name=='jiu'){ return 0.5; } + return 0; }); } else{ diff --git a/game/update.js b/game/update.js index b1c6a995c..fdf503f29 100644 --- a/game/update.js +++ b/game/update.js @@ -13,6 +13,7 @@ window.noname_update={ // 'card/*', // 'card/guozhan.js', // 'character/*', + 'character/refresh.js', // 'mode/boss.js', // 'mode/chess.js', // 'mode/versus.js',