张绣【踞襄】bug修复

调整张绣【踞襄】为新版本装备栏写法
This commit is contained in:
mengxinzxz 2023-09-08 07:34:43 +08:00 committed by GitHub
parent 2dcd05b229
commit f8368ecc7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -327,30 +327,30 @@ game.import('character',function(lib,game,ui,get,ai,_status){
enable: 'phaseUse',
forceaudio: true,
filter: function (event, player) {
return player.countCards('e') && player.group == 'qun' && game.hasPlayer(function (current) {
return current != player && current.hasZhuSkill('twjuxiang', player) && current.countCards('e') < 5;
return player.countCards('e') && player.group == 'qun' && game.hasPlayer(function (target) {
return target != player && target.hasZhuSkill('twjuxiang', player) && player.countCards('e',card=>target.hasEmptySlot(get.subtype(card))||target.hasDisabledSlot(get.subtype(card)));
});
},
filterTarget: function (card, player, target) {
return target != player && target.hasZhuSkill('twjuxiang', player) && (target.isEmpty(get.subtype(ui.selected.cards[0])) || target.isDisabled(get.subtype(ui.selected.cards[0])));
return target != player && target.hasZhuSkill('twjuxiang', player) && (target.hasEmptySlot(get.subtype(ui.selected.cards[0]))||target.hasDisabledSlot(get.subtype(ui.selected.cards[0])));
},
filterCard: { type: 'equip' },
position: 'e',
check: function (card) {
return 1;
return get.value(card);
},
prompt: '将装备区中的一张牌置入主公的装备区中或恢复主公的对应装备栏',
discard: false,
lose: false,
content: function () {
if (target.isDisabled(get.subtype(cards[0]))) {
target.gain(cards[0], player, 'give');
target.enableEquip(get.subtype(cards[0]));
}
else {
if (target.hasEmptySlot(get.subtype(cards[0]))) {
player.$give(cards[0], target, false);
target.equip(cards[0]);
}
else {
target.gain(cards[0], player, 'give');
target.enableEquip(get.subtype(cards[0]));
}
},
ai: {
order: 7,