Merge pull request #9 from kuangshen04/PR-Branch

1
This commit is contained in:
狂神 2024-03-06 19:32:32 +08:00 committed by GitHub
commit 1792b5581d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 16 deletions

View File

@ -816,24 +816,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2,
enable:'phaseUse',
filter:function(event,player){
return player.storage.drlt_zhenrong&&player.storage.drlt_zhenrong.length>0;
return player.getExpansions('drlt_zhenrong').length>0;
},
filterTarget:function(card,player,target){
return target.countDiscardableCards(player,'ej')>0;
},
content:function(){
'step 0'
player.chooseCardButton(player.storage.drlt_zhenrong,1,'请选择需要弃置的“荣”',true).ai=function(button){
player.chooseCardButton(player.getExpansions('drlt_zhenrong'),1,'请选择需要弃置的“荣”',true).ai=function(button){
return 6-get.value(button.link);
};
'step 1'
if(result.bool){
var cards=result.links;
for(var i=0;i<cards.length;i++){
player.storage.drlt_zhenrong.remove(cards[i]);
}
player.syncStorage('drlt_zhenrong');
player.$throw(cards);
player.loseToDiscardpile(cards);
player.discardPlayerCard(target,'ej',1,true);
}
},
@ -7289,6 +7285,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
},
// 蛊惑guhuo技能错误请勿引用
/*
guhuo:{
enable:'phaseUse',
usable:1,
@ -7357,6 +7355,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
threaten:1.6,
}
},
*/
huangtian:{
unique:true,
audio:'huangtian2',

View File

@ -917,10 +917,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result2.bool){
const card=result2.cards[0];
if(get.name(card,target)==event.result.card.name){
player.popup('洗具');
player.popup('诿解成功');
stop=true;
}
else player.popup('杯具');
else player.popup('诿解失败');
}
}
if(!stop){
@ -17709,9 +17709,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
skillAnimation:true,
animationColor:'orange',
forceunique:true,
//filter:function(event,player){
// return player.storage.fanghun2>0;
//},
filter:function(event,player){
return player.storage.fanghun2>0;
},
prompt:function(event,player){
var num=Math.max(2,player.storage.fanghun2||0);
num=Math.min(num,8);
@ -27468,7 +27468,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olqushi:'趋势',
olqushi_info:'出牌阶段限一次你可以摸一张牌然后将一张手牌扣置于一名其他角色的武将牌上称为“趋”。目标角色于其结束阶段移去武将牌上的所有“趋”若其于本回合使用过与“趋”相同类别的牌则你摸X张牌X为其本回合使用牌指定过的目标数之和且至多为5。',
olweijie:'诿解',
olweijie_info:'每回合限一次,你的回合外当你需要使用或打出一张基本牌时你可以弃置距离为1的一名角色的一张手牌若此牌牌名与你需要使用或打出的牌的牌名相同则视为你使用或打出之。',
olweijie_info:'回合外名角色的回合限一次当你需要使用或打出一张基本牌时你可以弃置距离为1的一名角色的一张手牌若此牌牌名与你需要使用或打出的牌的牌名相同则视为你使用或打出之。',
liupan:'刘磐',
olpijing:'披荆',
olpijing_info:'每回合限一次当你使用黑色【杀】或黑色普通锦囊牌指定唯一目标后你可以令至多X名其他角色成为此牌的额外目标并依次交给你一张牌X为你已损失的体力值且X至少为1。这些角色下次使用基本牌或普通锦囊牌指定唯一目标时其可令你成为此牌的额外目标或摸一张牌。',

View File

@ -338,7 +338,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ignoreLogAI:true,
skillTagFilter:function(player,tag,args){
if(args){
return args.card&&get.name(arg.card)=='sha';
return args.card&&get.name(args.card)=='sha';
}
},
},

View File

@ -2055,8 +2055,11 @@ export class Player extends HTMLDivElement {
return true;
}
$disableJudge() {
game.addVideo('$disableJudge', this);
this.storage._disableJudge = true;
for (let i = 0; i < this.node.judges.childNodes.length; i++) {
if (this.node.judges.childNodes[i].classList.contains('feichu')) return;
}
game.addVideo('$disableJudge', this);
var card = game.createCard('disable_judge', '', '');
card.fix();
card.classList.add('feichu');

View File

@ -11710,7 +11710,7 @@ export class Library extends Uninstantable {
lose: false,
delay: false,
content: () => {
player.recast(cards, null, (player, cards) => {
player.recast(cards, void 0, (player, cards) => {
var numberOfCardsToDraw = cards.length;
cards.forEach(value => {
if (lib.config.mode == 'stone' && _status.mode == 'deck' && !player.isMin() && get.type(value).startsWith('stone')) {