This commit is contained in:
libccy 2017-06-13 23:17:05 +08:00
parent de7cd57eb3
commit a65b147988
4 changed files with 13 additions and 1 deletions

View File

@ -678,7 +678,9 @@ game.import('card',function(lib,game,ui,get,ai,_status){
subtype:'spell_silver', subtype:'spell_silver',
vanish:true, vanish:true,
enable:true, enable:true,
filterTarget:true, filterTarget:function(card,player,target){
return target!=player;
},
content:function(){ content:function(){
'step 0' 'step 0'
if(!player.countCards('h')){ if(!player.countCards('h')){

View File

@ -253,6 +253,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
} }
} }
}, },
clearLose:true,
equipDelay:false, equipDelay:false,
loseDelay:false, loseDelay:false,
skills:['muniu_skill','muniu_skill2','muniu_skill6','muniu_skill7'], skills:['muniu_skill','muniu_skill2','muniu_skill6','muniu_skill7'],

View File

@ -652,6 +652,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
onLose:function(){ onLose:function(){
player.unmarkSkill('lianyaohu_skill'); player.unmarkSkill('lianyaohu_skill');
}, },
clearLose:true,
ai:{ ai:{
equipValue:6 equipValue:6
}, },
@ -1949,6 +1950,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
equipDelay:false, equipDelay:false,
loseDelay:false, loseDelay:false,
clearLose:true,
onLose:function(){ onLose:function(){
player.storage.nigong=0; player.storage.nigong=0;
player.unmarkSkill('nigong'); player.unmarkSkill('nigong');
@ -1964,6 +1966,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
skills:['xujin'], skills:['xujin'],
equipDelay:false, equipDelay:false,
loseDelay:false, loseDelay:false,
clearLose:true,
onLose:function(){ onLose:function(){
player.storage.xujin=0; player.storage.xujin=0;
}, },

View File

@ -16151,6 +16151,12 @@
this.removeSkillTrigger(info.skills[j]); this.removeSkillTrigger(info.skills[j]);
} }
} }
if(info.clearLose&&typeof info.onLose=='function'){
var next=game.createEvent('lose_'+card.name);
next.setContent(info.onLose);
next.player=this;
next.card=card;
}
} }
else{ else{
var es=this.getCards('e'); var es=this.getCards('e');