This commit is contained in:
libccy 2017-02-12 10:25:24 +08:00
parent 4f9500af24
commit 9f162bb1c6
3 changed files with 24 additions and 22 deletions

View File

@ -45,12 +45,13 @@ character.refresh={
var player=get.owner(card); var player=get.owner(card);
if(ui.selected.cards.length>=Math.max(2,player.num('h')-player.hp)) return 0; 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){ if(player.hp==player.maxHp||player.storage.rerende<0||player.num('h')<=1){
for(var i=0;i<game.players.length;i++){ var players=game.filterPlayer();
if(game.players[i].get('s').contains('haoshi')&& for(var i=0;i<players.length;i++){
!game.players[i].isTurnedOver()&& if(players[i].get('s').contains('haoshi')&&
!game.players[i].num('j','lebu')&& !players[i].isTurnedOver()&&
ai.get.attitude(player,game.players[i])>=3&& !players[i].num('j','lebu')&&
ai.get.attitude(game.players[i],player)>=3){ ai.get.attitude(player,players[i])>=3&&
ai.get.attitude(players[i],player)>=3){
return 11-ai.get.value(card); return 11-ai.get.value(card);
} }
} }
@ -75,10 +76,10 @@ character.refresh={
if(player.storage.rerende>=2){ if(player.storage.rerende>=2){
var list=[]; var list=[];
if(lib.filter.cardUsable({name:'sha'},player,event.getParent('chooseToUse'))){ if(lib.filter.cardUsable({name:'sha'},player,event.getParent('chooseToUse'))){
for(var i=0;i<game.players.length;i++){ if(game.hasPlayer(function(current){
if(player.canUse('sha',game.players[i])){ return player.canUse('sha',current);
list.push('sha');break; })){
} list.push('sha');
} }
} }
if(player.canUse('tao',player,true,true)){ if(player.canUse('tao',player,true,true)){
@ -94,9 +95,10 @@ character.refresh={
var player=_status.event.player; var player=_status.event.player;
if(controls.contains('tao')) return 'tao'; if(controls.contains('tao')) return 'tao';
if(controls.contains('sha')){ if(controls.contains('sha')){
for(var i=0;i<game.players.length;i++){ var players=game.filterPlayer();
if(player.canUse('sha',game.players[i],true,true)){ for(var i=0;i<players.length;i++){
if(ai.get.effect(game.players[i],{name:'sha'},player,player)>0){ if(player.canUse('sha',players[i],true,true)){
if(ai.get.effect(players[i],{name:'sha'},player,player)>0){
return 'sha'; return 'sha';
} }
} }
@ -165,14 +167,14 @@ character.refresh={
target:function(card,player,target){ target:function(card,player,target){
if(player==target&&get.type(card)=='equip'){ if(player==target&&get.type(card)=='equip'){
if(player.num('e',{subtype:get.subtype(card)})){ if(player.num('e',{subtype:get.subtype(card)})){
for(var i=0;i<game.players.length;i++){ if(game.hasPlayer(function(current){
if(game.players[i]!=player&&ai.get.attitude(player,game.players[i])>0){ return current!=player&&ai.get.attitude(player,current)>0;
})){
return 0; return 0;
} }
} }
} }
} }
}
}, },
threaten:0.8 threaten:0.8
} }
@ -1213,10 +1215,9 @@ character.refresh={
enable:'phaseUse', enable:'phaseUse',
usable:1, usable:1,
filter:function(event,player){ filter:function(event,player){
for(var i=0;i<game.players.length;i++){ return game.hasPlayer(function(current){
if(game.players[i].sex=='male') return true; return current.sex=='male';
} });
return false;
}, },
content:function(){ content:function(){
"step 0" "step 0"

View File

@ -30150,7 +30150,7 @@
ipbar.style.borderRadius='2px'; ipbar.style.borderRadius='2px';
ipbar.style.position='relative'; ipbar.style.position='relative';
var button=ui.create.div('.menubutton.large.highlight.connectbutton',game.online?'退出联机':'开始游戏',ui.window,function(){ var button=ui.create.div('.menubutton.large.highlight.connectbutton.pointerdiv',game.online?'退出联机':'开始游戏',ui.window,function(){
if(button.clicked) return; if(button.clicked) return;
if(game.online){ if(game.online){
if(game.onlinezhu){ if(game.onlinezhu){

View File

@ -2622,6 +2622,7 @@ div:not(.handcards)>.card>.info>span,
#window:not(.nopointer) #system>div>div:not(.hidden), #window:not(.nopointer) #system>div>div:not(.hidden),
#window:not(.nopointer) .choosedouble.character, #window:not(.nopointer) .choosedouble.character,
#window:not(.nopointer) .pointerdiv,
#window:not(.nopointer) .pointernode div, #window:not(.nopointer) .pointernode div,
#window:not(.nopointer) .pointerspan span, #window:not(.nopointer) .pointerspan span,
#window:not(.nopointer) .pointertable td>span, #window:not(.nopointer) .pointertable td>span,