调整chooseUseTarget中被认定为使用的是转化牌的逻辑

This commit is contained in:
copcap 2024-02-07 14:41:48 +08:00
parent f6d637da7c
commit 80dfc4ea8d
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
3 changed files with 5 additions and 3 deletions

View File

@ -1059,7 +1059,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var owner=_status.event.getParent().owner;
if(owner) owner.$throw(card.cards);
});
if(card.name!=cardx.name||!get.is.sameNature(card,cardx)) next.viewAs=true;
if(card.name===cardx.name&&get.is.sameNature(card,cardx,true)) next.viewAs=false;
var owner=get.owner(card);
if(owner!=player&&get.position(card)=='h'){
next.throw=false;

View File

@ -9961,7 +9961,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.directindex=result.index;
}
if(event.directindex==1){
target.chooseUseTarget({name:'sha'},cards,true,false).viewAs=true;
target.chooseUseTarget({name:'sha'},cards,true,false).viewAs=false;
}
else{
target.chooseUseTarget(card,true,false,'nodistance');

View File

@ -1043,7 +1043,8 @@ export const Content = {
},
chooseUseTarget: function () {
'step 0';
if (get.is.object(card) && !event.viewAs) card.isCard = true;
debugger
if (get.is.object(card) && event.viewAs === false) card.isCard = true;
if (cards && get.itemtype(card) != 'card') {
card = get.copy(card);
card.cards = cards.slice(0);
@ -8118,6 +8119,7 @@ export const Content = {
},
addJudge: function () {
"step 0";
debugger
const cardName = typeof card == 'string' ? card : card.name , cardInfo = lib.card[cardName];
if (cards) {
var owner = get.owner(cards[0]);