刘繇【逆拒】可能的bug修复
This commit is contained in:
parent
c77cee7e22
commit
3b36f5b2c2
|
@ -2070,7 +2070,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
const {links}=result;
|
const {links}=result;
|
||||||
if(typeof links[0]!=='string') links.reverse();
|
if(typeof links[0]!=='string') links.reverse();
|
||||||
let [fn,card]=links;
|
let [fn,card]=links;
|
||||||
const selectedPlayer=lose_list[cards.indexOf(card)][0];
|
const selectedPlayer=lose_list.find(item=>{
|
||||||
|
if(Array.isArray(item[1])) return item[1].includes(card);
|
||||||
|
return item[1]==card;
|
||||||
|
})[0];
|
||||||
player.logSkill('twniju',selectedPlayer);
|
player.logSkill('twniju',selectedPlayer);
|
||||||
selectedPlayer.addTempSkill('twniju_change');
|
selectedPlayer.addTempSkill('twniju_change');
|
||||||
if(!selectedPlayer.storage.twniju_change) selectedPlayer.storage.twniju_change=[];
|
if(!selectedPlayer.storage.twniju_change) selectedPlayer.storage.twniju_change=[];
|
||||||
|
|
Loading…
Reference in New Issue