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