From 9f162bb1c699fab27c428c895d2163ca0de21c38 Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 12 Feb 2017 10:25:24 +0800 Subject: [PATCH] s --- character/refresh.js | 43 ++++++++++++++++++++------------------- game/game.js | 2 +- layout/default/layout.css | 1 + 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/character/refresh.js b/character/refresh.js index 82eec4c3b..77075da44 100644 --- a/character/refresh.js +++ b/character/refresh.js @@ -45,12 +45,13 @@ character.refresh={ var player=get.owner(card); if(ui.selected.cards.length>=Math.max(2,player.num('h')-player.hp)) return 0; if(player.hp==player.maxHp||player.storage.rerende<0||player.num('h')<=1){ - for(var i=0;i=3&& - ai.get.attitude(game.players[i],player)>=3){ + var players=game.filterPlayer(); + for(var i=0;i=3&& + ai.get.attitude(players[i],player)>=3){ return 11-ai.get.value(card); } } @@ -75,10 +76,10 @@ character.refresh={ if(player.storage.rerende>=2){ var list=[]; if(lib.filter.cardUsable({name:'sha'},player,event.getParent('chooseToUse'))){ - for(var i=0;i0){ + var players=game.filterPlayer(); + for(var i=0;i0){ return 'sha'; } } @@ -165,10 +167,10 @@ character.refresh={ target:function(card,player,target){ if(player==target&&get.type(card)=='equip'){ if(player.num('e',{subtype:get.subtype(card)})){ - for(var i=0;i0){ - return 0; - } + if(game.hasPlayer(function(current){ + return current!=player&&ai.get.attitude(player,current)>0; + })){ + return 0; } } } @@ -1213,10 +1215,9 @@ character.refresh={ enable:'phaseUse', usable:1, filter:function(event,player){ - for(var i=0;i.card>.info>span, #window:not(.nopointer) #system>div>div:not(.hidden), #window:not(.nopointer) .choosedouble.character, +#window:not(.nopointer) .pointerdiv, #window:not(.nopointer) .pointernode div, #window:not(.nopointer) .pointerspan span, #window:not(.nopointer) .pointertable td>span,