This commit is contained in:
libccy 2017-04-01 15:12:56 +08:00
parent 6c1ce7017d
commit 8b32f584c0
3 changed files with 42 additions and 37 deletions

View File

@ -4246,10 +4246,10 @@ character.hearth={
selectTarget:function(){ selectTarget:function(){
return [1,_status.event.player.hujia]; return [1,_status.event.player.hujia];
}, },
content:function(){ contentBefore:function(){
if(target==targets[0]){
player.changeHujia(-player.hujia); player.changeHujia(-player.hujia);
} },
content:function(){
target.damage(); target.damage();
}, },
ai:{ ai:{

View File

@ -1273,25 +1273,29 @@ character.ow={
return [1,_status.event.player.countCards('he',{color:'black'})]; return [1,_status.event.player.countCards('he',{color:'black'})];
}, },
alter:true, alter:true,
content:function(){ delay:false,
contentBefore:function(){
'step 0' 'step 0'
if(target==targets[0]){ game.delayx();
'step 1'
player.storage.baoxue=true; player.storage.baoxue=true;
player.awakenSkill('baoxue'); player.awakenSkill('baoxue');
player.showHandcards(); player.showHandcards();
player.discard(player.getCards('he',{color:'black'})); player.discard(player.getCards('he',{color:'black'}));
} },
'step 1' content:function(){
'step 0'
if(!get.is.altered('baoxue')){ if(!get.is.altered('baoxue')){
var he=target.getCards('he'); var he=target.getCards('he');
if(he.length){ if(he.length){
target.discard(he.randomGet()); target.discard(he.randomGet());
} }
} }
'step 2' 'step 1'
target.turnOver(true); target.turnOver(true);
'step 3' },
if(get.is.altered('baoxue')&&target==targets[targets.length-1]){ contentAfter:function(){
if(get.is.altered('baoxue')){
player.turnOver(true); player.turnOver(true);
} }
}, },
@ -2660,13 +2664,13 @@ character.ow={
return target.isDamaged(); return target.isDamaged();
}, },
selectTarget:[1,Infinity], selectTarget:[1,Infinity],
content:function(){ contentBefore:function(){
if(target==targets[0]){
player.turnOver(); player.turnOver();
player.addSkill('sheng2'); player.addSkill('sheng2');
player.awakenSkill('sheng'); player.awakenSkill('sheng');
player.storage.sheng=true; player.storage.sheng=true;
} },
content:function(){
target.recover(); target.recover();
}, },
ai:{ ai:{

View File

@ -1259,11 +1259,11 @@ character.swd={
}, },
filterTarget:true, filterTarget:true,
selectTarget:[1,Infinity], selectTarget:[1,Infinity],
content:function(){ contentBefore:function(){
if(target==targets[0]){
player.awakenSkill('jinlin'); player.awakenSkill('jinlin');
player.storage.jinlin=true; player.storage.jinlin=true;
} },
content:function(){
target.changeHujia(3); target.changeHujia(3);
target.addSkill('jinlin2'); target.addSkill('jinlin2');
target.storage.jinlin2=3; target.storage.jinlin2=3;
@ -4488,9 +4488,11 @@ character.swd={
return player!=target; return player!=target;
}, },
selectTarget:-1, selectTarget:-1,
content:function(){ delay:false,
"step 0" contentBefore:function(){
if(target==targets[0]){ 'step 0'
game.delayx();
'step 1'
var cards=player.getCards('hej'); var cards=player.getCards('hej');
for(var i=0;i<cards.length;i++){ for(var i=0;i<cards.length;i++){
if(get.color(cards[i])!='black'){ if(get.color(cards[i])!='black'){
@ -4501,8 +4503,8 @@ character.swd={
player.discard(cards); player.discard(cards);
player.storage.miejing=true; player.storage.miejing=true;
player.unmarkSkill('miejing'); player.unmarkSkill('miejing');
} },
"step 1" content:function(){
target.damage('thunder'); target.damage('thunder');
} }
}, },
@ -7146,7 +7148,6 @@ character.swd={
} }
} }
}); });
console.log(num);
next.ai=function(card){ next.ai=function(card){
if(trigger.player.hasSkillTag('nofire')) return 0; if(trigger.player.hasSkillTag('nofire')) return 0;
if(num>0){ if(num>0){