OL胡金定【重身】bugfix
This commit is contained in:
parent
4b3f7aa616
commit
47cec9f6cc
|
@ -779,7 +779,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
order:2,
|
order:2,
|
||||||
respondShan:true,
|
respondShan:true,
|
||||||
skillTagFilter(player,tag,arg){
|
skillTagFilter(player,tag,arg){
|
||||||
if(arg=='respond'||!player.countCards('h',card=>card.hasGaintag('olchongshen'))) return false;
|
if(arg=='respond'||!player.countCards('h',card=>_status.connectMode||card.hasGaintag('olchongshen'))) return false;
|
||||||
},
|
},
|
||||||
effect:{
|
effect:{
|
||||||
target(card,player,target,current){
|
target(card,player,target,current){
|
||||||
|
@ -790,8 +790,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
group:'olchongshen_mark',
|
group:'olchongshen_mark',
|
||||||
mod:{
|
mod:{
|
||||||
aiValue(player,card,num){
|
aiValue(player,card,num){
|
||||||
if(get.name(card)!='shan'&&!card.hasGaintag('olchongshen')) return;
|
if(get.name(card)!='shan'&&(get.itemtype(card)=='card'&&!card.hasGaintag('olchongshen'))) return;
|
||||||
var cards=player.getCards('hs',card=>get.name(card)=='shan'||card.hasGaintag('olchongshen'));
|
let cards=player.getCards('hs',card=>get.name(card)=='shan'||card.hasGaintag('olchongshen'));
|
||||||
cards.sort((a,b)=>(get.name(b)=='shan'?1:2)-(get.name(a)=='shan'?1:2));
|
cards.sort((a,b)=>(get.name(b)=='shan'?1:2)-(get.name(a)=='shan'?1:2));
|
||||||
const geti=()=>{
|
const geti=()=>{
|
||||||
if(cards.includes(card)) return cards.indexOf(card);
|
if(cards.includes(card)) return cards.indexOf(card);
|
||||||
|
|
Loading…
Reference in New Issue