用customArgs重新修改南蛮、万箭让其支持需额外打出一张牌响应

This commit is contained in:
BauxiteAl 2023-10-02 21:26:28 +08:00
parent 4d0987119a
commit fac30f506f
1 changed files with 2 additions and 6 deletions

View File

@ -888,9 +888,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
reverseOrder:true,
content:function(){
"step 0"
if(!event.shaReq) event.shaReq={};
if(typeof event.shaReq[target.playerid]!='number') event.shaReq[target.playerid]=1;
event.shaRequired=event.shaReq[target.playerid];
if(typeof event.shaRequired!='number'||!event.shaRequired||event.shaRequired<0) event.shaRequired=1;
if(typeof event.baseDamage!='number') event.baseDamage=1;
"step 1"
if(event.directHit) event._result={bool:false};
@ -971,9 +969,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
},
content:function(){
"step 0"
if(!event.shanReq) event.shanReq={};
if(typeof event.shanReq[target.playerid]!='number') event.shanReq[target.playerid]=1;
event.shanRequired=event.shanReq[target.playerid];
if(typeof event.shanRequired!='number'||!event.shanRequired||event.shanRequired<0) event.shanRequired=1;
if(typeof event.baseDamage!='number') event.baseDamage=1;
"step 1"
if(event.directHit) event._result={bool:false};