给get.judge添加默认返回值
This commit is contained in:
parent
88aecb4a81
commit
59f8292984
|
@ -8252,7 +8252,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
jsrgeqian_info:'①结束阶段,你可以蓄谋任意次。②当你使用【杀】或蓄谋牌指定其他角色为唯一目标后,你可以令此牌不计入次数限制并获得目标一张牌,然后其可以令你本回合至其的距离+2。',
|
||||
jsrgfusha:'伏杀',
|
||||
jsrgfusha_info:'限定技。出牌阶段,若你的攻击范围内仅有一名角色,你可以对其造成X点伤害(X为你的攻击范围,至多为游戏人数)。',
|
||||
jsrg_sunlubansunluyu:'合孙鲁班孙鲁育',
|
||||
jsrg_sunlubansunluyu:'合大小虎',
|
||||
jsrg_sunlubansunluyu_prefix:'合',
|
||||
jsrgdaimou:'殆谋',
|
||||
jsrgdaimou_info:'每回合各限一次。当一名角色使用【杀】指定其他角色/你为目标时,你可以用牌堆顶的牌蓄谋/你须弃置你区域里的一张蓄谋牌。',
|
||||
|
|
|
@ -1871,7 +1871,10 @@ export class Get extends Uninstantable {
|
|||
if (card) return list[0];
|
||||
return list;
|
||||
}
|
||||
static judge(card) { return card.viewAs ? lib.card[card.viewAs].judge : get.info(card).judge; }
|
||||
static judge(card) {
|
||||
const cardInfo = (card.viewAs ? lib.card[card.viewAs] : get.info(card));
|
||||
return (cardInfo && cardInfo.judge) ? cardInfo.judge : ()=>0;
|
||||
}
|
||||
static judge2(card) { return card.viewAs ? lib.card[card.viewAs].judge2 : get.info(card).judge2; }
|
||||
static distance(from, to, method) {
|
||||
if (from == to) return 0;
|
||||
|
|
Loading…
Reference in New Issue