左慈/界左慈【化身】使用新机制+dieBegin将势力和性别换回原武将牌

This commit is contained in:
mengxinzxz 2024-02-17 00:45:52 +08:00
parent 6ab1416504
commit 9f14886753
2 changed files with 30 additions and 6 deletions

View File

@ -10589,10 +10589,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var link=result.control;
player.storage.rehuashen.current2=link;
if(!player.additionalSkills.rehuashen||!player.additionalSkills.rehuashen.includes(link)){
player.addAdditionalSkill('rehuashen',link);
player.addAdditionalSkills('rehuashen',link);
player.flashAvatar('rehuashen',event.card);
game.log(player,'获得了技能','#g【'+get.translation(link)+'】');
player.popup(link);
player.syncStorage('rehuashen');
player.updateMarks('rehuashen');
// lib.skill.rehuashen.createAudio(event.card,link,'re_zuoci');
@ -10603,6 +10601,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
character:[],
map:{},
}
player.when('dieBegin').then(()=>{
const name=player.name?player.name:player.name1;
if(name){
const sex=get.character(name,0);
const group=get.character(name,1);
if(player.sex!=sex){
game.broadcastAll((player,sex)=>{
player.sex=sex;
},player,sex);
game.log(player,'将性别变为了','#y'+get.translation(sex)+'性');
}
if(player.group!=group) player.changeGroup(group);
}
});
},
banned:['lisu','sp_xiahoudun','xushao','jsrg_xushao','zhoutai','old_zhoutai','shixie','xin_zhoutai','dc_shixie','old_shixie'],
bannedType:['Charlotte','主公技','觉醒技','限定技','隐匿技','使命技'],

View File

@ -4180,6 +4180,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
owned:{}
};
}
player.when('dieBegin').then(()=>{
const name=player.name?player.name:player.name1;
if(name){
const sex=get.character(name,0);
const group=get.character(name,1);
if(player.sex!=sex){
game.broadcastAll((player,sex)=>{
player.sex=sex;
},player,sex);
game.log(player,'将性别变为了','#y'+get.translation(sex)+'性');
}
if(player.group!=group) player.changeGroup(group);
}
});
},
intro:{
content:function(storage,player){
@ -4455,10 +4469,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
player.storage.huashen.current2=skill;
if(!player.additionalSkills.huashen||!player.additionalSkills.huashen.includes(skill)){
player.addAdditionalSkill('huashen',skill);
player.addAdditionalSkills('huashen',skill);
player.flashAvatar('huashen',character);
game.log(player,'获得了技能','#g【'+get.translation(skill)+'】');
player.popup(skill);
player.syncStorage('huashen');
player.updateMarks('huashen');
// lib.skill.rehuashen.createAudio(character,skill,'zuoci');