Bug、AI修正

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

View File

@ -693,16 +693,9 @@ 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.choosePlayerCard(target,true); player.gainPlayerCard('hej',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){
@ -748,15 +741,9 @@ 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.choosePlayerCard(target,true); player.discardPlayerCard('hej',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.underControl()){ if(player.isUnderControl()){
game.swapPlayer(player); game.modeSwapPlayer(player);
} }
if(event.isMine()){ if(event.isMine()){
ui.auto.hide(); ui.auto.hide();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -584,7 +584,7 @@ mode.versus={
e.stopPropagation(); e.stopPropagation();
} }
else{ else{
game.versusSwapControl(this.link); game.modeSwapPlayer(this.link);
} }
}, },
versusCheckHandcards:function(){ versusCheckHandcards:function(){
@ -838,7 +838,7 @@ mode.versus={
} }
} }
}, },
versusSwapControl:function(player){ modeSwapPlayer: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.versusSwapControl(player); game.modeSwapPlayer(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.versusSwapControl(player); game.modeSwapPlayer(player);
} }
event.finish(); event.finish();
} }
"step 1" "step 1"
if(result.bool){ if(result.bool){
game.versusSwapControl(player); game.modeSwapPlayer(player);
if(ui.dialog){ if(ui.dialog){
ui.dialog.style.display=''; ui.dialog.style.display='';
} }

View File

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