This commit is contained in:
libccy 2018-01-14 23:35:35 +08:00
parent 352278159b
commit ec30ba7c04
3 changed files with 29 additions and 3 deletions

View File

@ -120,6 +120,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
nsanruo:{
unique:true,
init:function(player){
if(!player.node.handcards1.cardMod){
player.node.handcards1.cardMod={};
}
if(!player.node.handcards2.cardMod){
player.node.handcards2.cardMod={};
}
var cardMod=function(card){
if(get.info(card).multitarget) return;
if(card.name=='sha'||get.type(card)=='trick') return ['暗弱','杀或普通锦囊牌对你不可见'];
};
player.node.handcards1.cardMod.nsanruo=cardMod;
player.node.handcards2.cardMod.nsanruo=cardMod;
player.node.handcards1.classList.add('nsanruo');
player.node.handcards2.classList.add('nsanruo');
if(!ui.css.nsanruo){
@ -130,8 +142,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
onremove:function(player){
player.node.handcards1.classList.add('nsanruo');
player.node.handcards2.classList.add('nsanruo');
player.node.handcards1.classList.remove('nsanruo');
player.node.handcards2.classList.remove('nsanruo');
delete player.node.handcards1.cardMod.nsanruo;
delete player.node.handcards2.cardMod.nsanruo;
},
ai:{
neg:true

View File

@ -45251,6 +45251,18 @@
return;
}
var name=node.name;
if(node.parentNode.cardMod){
var moded=false;
for(var i in node.parentNode.cardMod){
var item=node.parentNode.cardMod[i](node);
if(Array.isArray(item)){
moded=true;
uiintro.add(item[0]);
uiintro._place_text=uiintro.add('<div class="text" style="display:inline">'+item[1]+'</div>');
}
}
if(moded) return uiintro;
}
if(node.link&&node.link.name&&lib.card[node.link.name]){
name=node.link.name;
}

View File

@ -1,5 +1,5 @@
window.noname_update={
version:'1.9.47',
version:'1.9.47.1',
update:'1.9.46',
changeLog:[
'bug修复',