修复乐大乔【姊希】录像回放bug
This commit is contained in:
parent
648c9854e1
commit
0ef71f4905
|
@ -1200,8 +1200,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
dczixi:{
|
dczixi:{
|
||||||
init(){
|
init(){
|
||||||
game.addGlobalSkill('dczixi_judge');
|
game.addGlobalSkill('dczixi_judge');
|
||||||
game.broadcastAll((list)=>{
|
game.broadcastAll(()=>lib.skill.dczixi.video());
|
||||||
list.forEach(name=>{
|
},
|
||||||
|
video(){
|
||||||
|
const list=lib.skill.dczixi.zixiList;
|
||||||
|
for(const name of list){
|
||||||
const namex='dczixi_'+name;
|
const namex='dczixi_'+name;
|
||||||
if(!lib.card[namex]){
|
if(!lib.card[namex]){
|
||||||
lib.card[namex]={
|
lib.card[namex]={
|
||||||
|
@ -1214,8 +1217,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
lib.translate[namex]=lib.translate[name]+'·姊希';
|
lib.translate[namex]=lib.translate[name]+'·姊希';
|
||||||
lib.translate[namex+'_info']='由【姊希】技能创造的无效果【'+lib.translate[name]+'】';
|
lib.translate[namex+'_info']='由【姊希】技能创造的无效果【'+lib.translate[name]+'】';
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
},lib.skill.dczixi.zixiList);
|
|
||||||
},
|
},
|
||||||
audio:2,
|
audio:2,
|
||||||
trigger:{player:['phaseUseBegin','phaseUseEnd']},
|
trigger:{player:['phaseUseBegin','phaseUseEnd']},
|
||||||
|
@ -1229,6 +1231,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
zixiList:['lebu','bingliang','shandian'],
|
zixiList:['lebu','bingliang','shandian'],
|
||||||
direct:true,
|
direct:true,
|
||||||
async content(event,trigger,player){
|
async content(event,trigger,player){
|
||||||
|
game.addVideo('skill',player,['dczixi',[]]);
|
||||||
const names=lib.skill.dczixi.zixiList.filter(name=>{
|
const names=lib.skill.dczixi.zixiList.filter(name=>{
|
||||||
return player.countCards('h',card=>{
|
return player.countCards('h',card=>{
|
||||||
return card.hasGaintag('dcqiqin_tag')&&game.hasPlayer(target=>target.canAddJudge(get.autoViewAs({name:'dczixi_'+name},[card])));
|
return card.hasGaintag('dcqiqin_tag')&&game.hasPlayer(target=>target.canAddJudge(get.autoViewAs({name:'dczixi_'+name},[card])));
|
||||||
|
|
Loading…
Reference in New Issue