skill={
audio:"ext:无名扩展:2",
init:function (player,skill){
if(!player.storage.dlchangbiao1) player.storage.dlchangbiao1=0;
if(!player.storage.dlchangbiao2) player.storage.dlchangbiao2=0;
},
mod:{
targetInRange:function (card,player,target){
if(card.dlchangbiao) return true;
},
},
enable:"phaseUse",
usable:1,
position:"hs",
viewAs:{
name:"sha",
dlchangbiao:true,
},
locked:false,
filter:function (event,player){
return player.countCards('hs')>0;
},
filterCard:true,
selectCard:[1,Infinity],
onuse:function (result,player){
player.addTempSkill('dlchangbiao_isdamage');
player.addTempSkill('dlchangbiao_draw');
},
subSkill:{
isdamage:{
trigger:{
player:"useCardAfter",
},
silent:true,
filter:function (event,player){
return event&&event.name=='sha'&&event.skill=='dlchangbiao';
},
content:function (){
player.getHistory('sourceDamage',function(evxt){
var evt=evxt.getParent();
if(evt&&evt.name=='sha'&&evt.skill=='dlchangbiao'&&evt.getParent('phaseUse')==trigger) {
player.storage.dlchangbiao1=evt.cards.length;
if(evt.target[0].isDead()) player.storage.dlchangbiao2=1;
}
});
if(!player.storage.dlchangbiao1) trigger.target[0].gain(player.getEquip(1),player,'give','bySelf');
},
forced:true,
popup:false,
sub:true,
},
draw:{
trigger:{
player:"phaseAfter",
},
forced:true,
charlotte:true,
filter:function (){
return player.storage.dlchangbiao1>0;
},
content:function (){
player.draw(player.storage.dlchangbiao1);
if(player.storage.dlchangbiao2) player.insertPhase();
player.storage.dlchangbiao1=0;
player.storage.dlchangbiao2=0;
},
sub:true,
},
},
audio:"ext:无名扩展:2",
init:function (player,skill){
if(!player.storage.dlchangbiao1) player.storage.dlchangbiao1=0;
if(!player.storage.dlchangbiao2) player.storage.dlchangbiao2=0;
},
mod:{
targetInRange:function (card,player,target){
if(card.dlchangbiao) return true;
},
},
enable:"phaseUse",
usable:1,
position:"hs",
viewAs:{
name:"sha",
dlchangbiao:true,
},
locked:false,
filter:function (event,player){
return player.countCards('hs')>0;
},
filterCard:true,
selectCard:[1,Infinity],
onuse:function (result,player){
player.addTempSkill('dlchangbiao_isdamage');
player.addTempSkill('dlchangbiao_draw');
},
subSkill:{
isdamage:{
trigger:{
player:"useCardAfter",
},
silent:true,
filter:function (event,player){
return event&&event.name=='sha'&&event.skill=='dlchangbiao';
},
content:function (){
player.getHistory('sourceDamage',function(evxt){
var evt=evxt.getParent();
if(evt&&evt.name=='sha'&&evt.skill=='dlchangbiao'&&evt.getParent('phaseUse')==trigger) {
player.storage.dlchangbiao1=evt.cards.length;
if(evt.target[0].isDead()) player.storage.dlchangbiao2=1;
}
});
if(!player.storage.dlchangbiao1) trigger.target[0].gain(player.getEquip(1),player,'give','bySelf');
},
forced:true,
popup:false,
sub:true,
},
draw:{
trigger:{
player:"phaseAfter",
},
forced:true,
charlotte:true,
filter:function (){
return player.storage.dlchangbiao1>0;
},
content:function (){
player.draw(player.storage.dlchangbiao1);
if(player.storage.dlchangbiao2) player.insertPhase();
player.storage.dlchangbiao1=0;
player.storage.dlchangbiao2=0;
},
sub:true,
},
},