Merge pull request #119 from disgrace2013/master

新1v1模式调整,根据官方规则
This commit is contained in:
Spmario233 2023-05-29 23:27:28 +08:00 committed by GitHub
commit ab054cd859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -239,6 +239,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.gameDraw(game.zhu,function(player){
if(_status.mode=='dianjiang') return 4;
if(_status.mode=='normal') return player==game.zhu?3:4;
if(_status.mode=='changban') return player==game.fan?5:4;
if(player.hasSkill('cuorui')){
player.logSkill('cuorui');
@ -834,7 +835,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
},source,name,color);
game.log(source,'出场');
var num=source.maxHp;
var num=_status.mode == 'normal' ? 4 : source.maxHp;
if(player.hasSkill('cuorui')){
player.logSkill('cuorui');
num=2+_status.characterChoice[player.identity].length;