v1.9.31.2

This commit is contained in:
libccy 2017-07-11 16:26:41 +08:00
parent 5a7567c285
commit 8ba54f0bd9
2 changed files with 18 additions and 6 deletions

View File

@ -795,12 +795,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
caishi:{ caishi:{
trigger:{player:'phaseDrawBegin'}, trigger:{player:'phaseDrawBegin'},
direct:true, direct:true,
init:function(player){
player.storage.caishi=0;
},
intro:{
content:'手牌上限+#'
},
content:function(){ content:function(){
'step 0' 'step 0'
if(player.isHealthy()){ if(player.isHealthy()){
event.type=0; event.type=0;
player.chooseBool(get.prompt('caishi'),'手牌上限+1然后本回合你的牌不能对其他角色使用',function(){ player.chooseBool(get.prompt('caishi'),'手牌上限+1然后本回合你的牌不能对其他角色使用',function(event,player){
return player.skipList.contains('phaseUse'); return player.skipList.contains('phaseUse')||!player.needsToDiscard(1);
}); });
} }
else{ else{
@ -815,6 +821,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('caishi'); player.logSkill('caishi');
if(result.index==0){ if(result.index==0){
player.addTempSkill('caishi2'); player.addTempSkill('caishi2');
player.storage.caishi++;
player.markSkill('caishi');
} }
else if(result.index==1){ else if(result.index==1){
player.recover(); player.recover();
@ -826,15 +834,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){ if(result.bool){
player.logSkill('caishi'); player.logSkill('caishi');
player.addTempSkill('caishi2'); player.addTempSkill('caishi2');
player.storage.caishi++;
player.markSkill('caishi');
} }
} }
},
mod:{
maxHandcard:function(player,num){
if(typeof player.storage.caishi=='number') return num+player.storage.caishi;
},
} }
}, },
caishi2:{ caishi2:{
mod:{ mod:{
maxHandcard:function(player,num){
return num+1;
},
playerEnabled:function(card,player,target){ playerEnabled:function(card,player,target){
if(player!=target) return false; if(player!=target) return false;
} }

View File

@ -1,5 +1,5 @@
window.noname_update={ window.noname_update={
version:'1.9.31.1', version:'1.9.31.2',
update:'1.9.31', update:'1.9.31',
changeLog:[ changeLog:[
'新武将', '新武将',