起许劭【盈门】获得访客动画修复

修复起许劭【盈门】仅在自己视角下才播放获得“访客”牌特效的bug
This commit is contained in:
mengxinzxz 2023-08-23 10:46:55 +08:00 committed by GitHub
parent ac2c71b71c
commit fe95188cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -1880,8 +1880,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
addVisitors:function(characters,player){
player.addSkillBlocker('sbyingmen');
game.log(player,'将','#y'+get.translation(characters),'加入了','#g“访客”')
lib.skill.rehuashen.drawCharacter(player,characters);
game.log(player,'将','#y'+get.translation(characters),'加入了','#g“访客”');
game.broadcastAll(function(player,characters){
player.$draw(characters.map(function(name){
var cardname='huashen_card_'+name;
lib.card[cardname]={
fullimage:true,
image:'character:'+name
};
lib.translate[cardname]=get.rawName2(name);
return game.createCard(cardname,' ',' ');
}),'nobroadcast');
},player,characters);
player.markAuto('sbyingmen',characters)
var storage=player.getStorage('sbyingmen');
var skills=lib.skill.sbyingmen.getSkills(storage,player);