This commit is contained in:
libccy 2017-04-01 13:23:02 +08:00
parent a321d8c267
commit 6580fb4124
2 changed files with 71 additions and 20 deletions

View File

@ -7146,30 +7146,78 @@ character.sp={
} }
}, },
huxiao:{ huxiao:{
audio:2, trigger:{source:'damageEnd'},
trigger:{player:'shaMiss'}, forced:true,
popup:false,
silent:true,
filter:function(event,player){
return event.nature=='fire';
},
content:function(){
if(!player.storage.huxiao){
player.storage.huxiao=[];
}
player.storage.huxiao.add(trigger.player);
},
group:['huxiao_draw','huxiao_clear'],
subSkill:{
draw:{
trigger:{source:'damageAfter'},
priority:-6,
filter:function(event,player){
if(!player.storage.huxiao||!player.storage.huxiao.length) return false;
for(var i=0;i<player.storage.huxiao.length;i++){
if(player.storage.huxiao[i].isIn()) return true;
}
return false;
},
check:function(){
return false;
},
forced:true, forced:true,
content:function(){ content:function(){
player.storage.huxiao++; for(var i=0;i<player.storage.huxiao.length;i++){
}, if(!player.storage.huxiao[i].isIn()){
check:function(event,player){ player.storage.huxiao.splice(i--,1);
return player.countCards('h','sha')>0; }
}, }
mod:{ game.asyncDraw(player.storage.huxiao);
cardUsable:function(card,player,num){ if(!player.storage.huxiao3){
if(card.name=='sha') return num+player.storage.huxiao; player.storage.huxiao3=[];
}
player.storage.huxiao3.addArray(player.storage.huxiao);
player.addTempSkill('huxiao3','phaseAfter');
} }
}, },
group:'huxiao2' clear:{
}, trigger:{source:'damageAfter'},
huxiao2:{ priority:-7,
trigger:{player:'phaseUseBegin'},
forced:true, forced:true,
popup:false, popup:false,
silent:true, silent:true,
content:function(){ content:function(){
player.storage.huxiao=0; delete player.storage.huxiao;
}
}
}
}, },
huxiao3:{
onremove:true,
mark:true,
intro:{
content:'players'
},
mod:{
cardUsable:function(card,player,num){
if(typeof num=='number') return num+100;
},
playerEnabled:function(card,player,target){
if(!player.storage.huxiao3||!player.storage.huxiao3.contains(target)){
var num=player.getCardUsable(card)-100;
if(num<=0) return false;
}
}
}
}, },
aocai:{ aocai:{
audio:2, audio:2,
@ -8483,6 +8531,7 @@ character.sp={
aocai2_backup:'傲才', aocai2_backup:'傲才',
aocai3:'傲才', aocai3:'傲才',
huxiao:'虎啸', huxiao:'虎啸',
huxiao3:'虎啸',
xueji:'血祭', xueji:'血祭',
wuji:'武继', wuji:'武继',
shushen:'淑慎', shushen:'淑慎',

View File

@ -18928,6 +18928,7 @@
forced:true, forced:true,
popup:false, popup:false,
logv:false, logv:false,
priority:-5,
content:function(){ content:function(){
"step 0" "step 0"
player.link(); player.link();
@ -18957,6 +18958,7 @@
event.player.classList.contains('dead')&&player.isLinked()); event.player.classList.contains('dead')&&player.isLinked());
}, },
forced:true, forced:true,
priority:-5,
content:function(){ content:function(){
"step 0" "step 0"
trigger.player.removeLink(); trigger.player.removeLink();