This commit is contained in:
libccy 2016-06-25 15:02:11 +08:00
parent c4535e7d99
commit def40b76d2
3 changed files with 23 additions and 1 deletions

View File

@ -39,6 +39,8 @@ card.guozhan={
}, },
ai:{ ai:{
order:0.5, order:0.5,
value:4,
useful:2,
result:{ result:{
target:function(player,target){ target:function(player,target){
if(target.num('he')>=2) return 1; if(target.num('he')>=2) return 1;
@ -74,6 +76,9 @@ card.guozhan={
} }
}, },
ai:{ ai:{
order:7,
value:4,
useful:2,
result:{ result:{
target:function(player,target){ target:function(player,target){
return ai.get.damageEffect(target,player,target,'thunder')*target.num('e'); return ai.get.damageEffect(target,player,target,'thunder')*target.num('e');
@ -111,6 +116,8 @@ card.guozhan={
}, },
ai:{ ai:{
order:7.5, order:7.5,
value:4,
useful:2,
wuxie:function(){ wuxie:function(){
return 0; return 0;
}, },
@ -119,7 +126,7 @@ card.guozhan={
var num=0; var num=0;
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
if(target.isMajor()==game.players[i].isMajor()){ if(target.isMajor()==game.players[i].isMajor()){
if(target.isLinked){ if(target.isLinked()){
num+=ai.get.attitude(player,target); num+=ai.get.attitude(player,target);
} }
else{ else{
@ -184,6 +191,8 @@ card.guozhan={
}, },
ai:{ ai:{
order:3, order:3,
value:4,
useful:2,
result:{ result:{
player:0.8, player:0.8,
target:1 target:1
@ -225,6 +234,12 @@ card.guozhan={
else{ else{
target.chooseToDiscard('he',{type:'equip'},true); target.chooseToDiscard('he',{type:'equip'},true);
} }
},
ai:{
order:6,
result:{
target:-1
}
} }
}, },
diaohulishan:{ diaohulishan:{
@ -240,9 +255,12 @@ card.guozhan={
}, },
ai:{ ai:{
order:10, order:10,
value:4,
useful:2,
result:{ result:{
player:1, player:1,
target:function(player,target){ target:function(player,target){
if(target.hp==1) return 0;
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
if(game.players[i]==target) continue; if(game.players[i]==target) continue;
if(ai.get.attitude(player,game.players[i])<=ai.get.attitude(player,target)){ if(ai.get.attitude(player,game.players[i])<=ai.get.attitude(player,target)){

View File

@ -565,6 +565,7 @@ character.shenhua={
} }
if(!hasfriend) return; if(!hasfriend) return;
if(get.tag(card,'respondSha')||get.tag(card,'respondShan')){ if(get.tag(card,'respondSha')||get.tag(card,'respondShan')){
if(ai.get.attitude(player,target)>0&&card.name=='juedou') return;
if(target.num('h')==0) return 2; if(target.num('h')==0) return 2;
return [0.5,target.num('h','sha')+target.num('h','shan')]; return [0.5,target.num('h','sha')+target.num('h','shan')];
} }

View File

@ -11,6 +11,7 @@ window.noname_update={
'character/sp.js', 'character/sp.js',
'character/hearth.js', 'character/hearth.js',
'character/yijiang.js', 'character/yijiang.js',
'character/swd.js',
'card/swd.js', 'card/swd.js',
'card/extra.js', 'card/extra.js',
'card/zhenfa.js', 'card/zhenfa.js',
@ -22,6 +23,8 @@ window.noname_update={
'mode/identity.js', 'mode/identity.js',
'game/game.js', 'game/game.js',
'game/asset.js', 'game/asset.js',
'extension/coin/extension.js',
'layout/default/layout.css'
], ],
'1.8.15.4':[] '1.8.15.4':[]
} }