commit
4cc78b3a4c
|
@ -469,13 +469,13 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
return 2;
|
||||
},
|
||||
target_use:(player,target,card)=>{
|
||||
if(!player.isPhaseUsing()||player.hasSkillTag('nokeep',true,{
|
||||
card:card,
|
||||
target:target
|
||||
},true)) return 2;
|
||||
let mode = get.mode(),
|
||||
taos = player.getCards('hs',i=>get.name(i)==='tao'&&lib.filter.cardEnabled(i,target,'forceEnable'));
|
||||
if(target.hp>0){
|
||||
if(target!==_status.event.dying){
|
||||
if(!player.isPhaseUsing() || player.hasSkillTag('nokeep',true,{
|
||||
card:card,
|
||||
target:target
|
||||
},true)) return 2;
|
||||
let min = 7.2-4*player.hp/player.maxHp,
|
||||
nd = player.needsToDiscard(0,(i,player)=>{
|
||||
return !player.canIgnoreHandcard(i)&&(taos.includes(i)||get.value(i)>=min);
|
||||
|
|
|
@ -53,10 +53,13 @@ export class Get extends Uninstantable {
|
|||
return list;
|
||||
}
|
||||
/**
|
||||
* 根据座次数n(从0开始)获取对应的“n+1号位”翻译
|
||||
* @param {number} seat
|
||||
* 根据(Player的)座次数n(从1开始)获取对应的“n号位”翻译
|
||||
* @param {number | Player} seat
|
||||
*/
|
||||
static seatTranslation(seat) { return `${get.cnNumber(seat + 1, true)}号位`; }
|
||||
static seatTranslation(seat) {
|
||||
if (get.itemtype(seat) === 'player') seat = seat.getSeatNum();
|
||||
return `${get.cnNumber(seat, true)}号位`;
|
||||
}
|
||||
/**
|
||||
* @param {number} numberOfPlayers
|
||||
* @returns {string[]}
|
||||
|
@ -4685,7 +4688,7 @@ export class Get extends Uninstantable {
|
|||
return eff;
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param {any} source 如果参数是function,执行此函数并返回结果,传参为此方法剩余的参数。如果参数不是function,直接返回结果。
|
||||
* @returns 返回的结果
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue