调整chooseUseTarget中被认定为使用的是转化牌的逻辑
This commit is contained in:
parent
f6d637da7c
commit
80dfc4ea8d
|
@ -1059,7 +1059,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var owner=_status.event.getParent().owner;
|
var owner=_status.event.getParent().owner;
|
||||||
if(owner) owner.$throw(card.cards);
|
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);
|
var owner=get.owner(card);
|
||||||
if(owner!=player&&get.position(card)=='h'){
|
if(owner!=player&&get.position(card)=='h'){
|
||||||
next.throw=false;
|
next.throw=false;
|
||||||
|
|
|
@ -9961,7 +9961,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
event.directindex=result.index;
|
event.directindex=result.index;
|
||||||
}
|
}
|
||||||
if(event.directindex==1){
|
if(event.directindex==1){
|
||||||
target.chooseUseTarget({name:'sha'},cards,true,false).viewAs=true;
|
target.chooseUseTarget({name:'sha'},cards,true,false).viewAs=false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
target.chooseUseTarget(card,true,false,'nodistance');
|
target.chooseUseTarget(card,true,false,'nodistance');
|
||||||
|
|
|
@ -1043,7 +1043,8 @@ export const Content = {
|
||||||
},
|
},
|
||||||
chooseUseTarget: function () {
|
chooseUseTarget: function () {
|
||||||
'step 0';
|
'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') {
|
if (cards && get.itemtype(card) != 'card') {
|
||||||
card = get.copy(card);
|
card = get.copy(card);
|
||||||
card.cards = cards.slice(0);
|
card.cards = cards.slice(0);
|
||||||
|
@ -8118,6 +8119,7 @@ export const Content = {
|
||||||
},
|
},
|
||||||
addJudge: function () {
|
addJudge: function () {
|
||||||
"step 0";
|
"step 0";
|
||||||
|
debugger
|
||||||
const cardName = typeof card == 'string' ? card : card.name , cardInfo = lib.card[cardName];
|
const cardName = typeof card == 'string' ? card : card.name , cardInfo = lib.card[cardName];
|
||||||
if (cards) {
|
if (cards) {
|
||||||
var owner = get.owner(cards[0]);
|
var owner = get.owner(cards[0]);
|
||||||
|
|
Loading…
Reference in New Issue