Revert "Bug、AI修正"

This reverts commit 610eb9f4d4.
This commit is contained in:
libccy 2015-05-01 16:27:58 +08:00
parent 610eb9f4d4
commit 64b7d2f8f5
5 changed files with 25 additions and 14 deletions

View File

@ -693,9 +693,16 @@ card.standard={
return (target.num('hej')>0); return (target.num('hej')>0);
}, },
content:function(){ content:function(){
"step 0"
if(target.num('hej')){ if(target.num('hej')){
player.gainPlayerCard('hej',target,true); player.choosePlayerCard(target,true);
} }
else{
event.finish();
}
"step 1"
player.gain(result.buttons[0].link);
target.$give(1,player);
}, },
ai:{ ai:{
wuxie:function(target,card,player,viewer){ wuxie:function(target,card,player,viewer){
@ -741,9 +748,15 @@ card.standard={
return (target.num('hej')>0); return (target.num('hej')>0);
}, },
content:function(){ content:function(){
"step 0"
if(target.num('hej')){ if(target.num('hej')){
player.discardPlayerCard('hej',target,true); player.choosePlayerCard(target,true);
} }
else{
event.finish();
}
"step 1"
target.discard(result.buttons[0].link);
}, },
ai:{ ai:{
basic:{ basic:{

View File

@ -611,8 +611,8 @@ character.standard={
frequent:true, frequent:true,
content:function(){ content:function(){
"step 0" "step 0"
if(player.isUnderControl()){ if(player.underControl()){
game.modeSwapPlayer(player); game.swapPlayer(player);
} }
if(event.isMine()){ if(event.isMine()){
ui.auto.hide(); ui.auto.hide();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -584,7 +584,7 @@ mode.versus={
e.stopPropagation(); e.stopPropagation();
} }
else{ else{
game.modeSwapPlayer(this.link); game.versusSwapControl(this.link);
} }
}, },
versusCheckHandcards:function(){ versusCheckHandcards:function(){
@ -838,7 +838,7 @@ mode.versus={
} }
} }
}, },
modeSwapPlayer:function(player){ versusSwapControl:function(player){
if(lib.storage.control_all){ if(lib.storage.control_all){
game.swapControl(player); game.swapControl(player);
} }
@ -928,20 +928,20 @@ mode.versus={
else{ else{
if(ui.autoreplace.classList.contains('on')){ if(ui.autoreplace.classList.contains('on')){
if(trigger.name!='phase'){ if(trigger.name!='phase'){
game.modeSwapPlayer(player); game.versusSwapControl(player);
if(ui.dialog){ if(ui.dialog){
ui.dialog.style.display=''; ui.dialog.style.display='';
} }
} }
} }
else if(trigger.name=='phase'){ else if(trigger.name=='phase'){
game.modeSwapPlayer(player); game.versusSwapControl(player);
} }
event.finish(); event.finish();
} }
"step 1" "step 1"
if(result.bool){ if(result.bool){
game.modeSwapPlayer(player); game.versusSwapControl(player);
if(ui.dialog){ if(ui.dialog){
ui.dialog.style.display=''; ui.dialog.style.display='';
} }

View File

@ -31,13 +31,11 @@ html{
.selected{ .selected{
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.8) 0 0 15px !important; box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.8) 0 0 15px !important;
} }
.card:not(*:empty){ .card.fullskin{
color:rgb(77, 60, 51);
text-shadow:none;
background: url('wood3.png'); background: url('wood3.png');
} }
#me>div>.card,#arena>.card:not(*:empty){ .card{
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px; color: white;
} }
.fire{ .fire{
color: rgb(255,119,63); color: rgb(255,119,63);