OL彭羕 属性杀修复

This commit is contained in:
Spmario233 2023-09-17 21:23:38 +08:00
parent 5e039a0d63
commit 4c7f04e915
1 changed files with 13 additions and 8 deletions

View File

@ -1117,10 +1117,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sourceSkill:'olqifan',
precontent:function(){
delete event.result.skill;
var name=event.result.card.name;
event.result.cards=event.result.card.cards.slice(0);
event.result.card=get.autoViewAs({name:name,isCard:true},event.result.cards);
player.markAuto('olqifan',[get.type2(event.result.card,false)]);
var name=event.result.card.name,cards=event.result.card.cards.slice(0);
event.result.cards=cards;
var rcard=cards[0],card;
if(rcard.name==name) card=get.autoViewAs(rcard);
else card=get.autoViewAs({name,isCard:true});
event.result.card=card;
player.markAuto('olqifan',[get.type2(card,false)]);
event.getParent().set('olqifan_discard',true);
player.addTempSkill('olqifan_discard');
},
@ -21740,10 +21743,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sourceSkill:'aocai',
precontent:function(){
delete event.result.skill;
var name=event.result.card.name;
event.result.cards=event.result.card.cards;
event.result.card=get.autoViewAs(event.result.cards[0]);
event.result.card.name=name;
var name=event.result.card.name,cards=event.result.card.cards.slice(0);
event.result.cards=cards;
var rcard=cards[0],card;
if(rcard.name==name) card=get.autoViewAs(rcard);
else card=get.autoViewAs({name,isCard:true});
event.result.card=card;
},
filterCard:function(){return false},
selectCard:-1,