优化jijiang1技能的写法
This commit is contained in:
parent
75474dfd2e
commit
2da3b7423e
|
@ -932,7 +932,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
delete trigger.skill;
|
delete trigger.skill;
|
||||||
trigger.getParent().set('jijiang',true);
|
trigger.getParent().set('jijiang',true);
|
||||||
while(true){
|
while(true){
|
||||||
let bool,card,cards;
|
|
||||||
if(event.current==undefined) event.current=player.next;
|
if(event.current==undefined) event.current=player.next;
|
||||||
if(event.current==player){
|
if(event.current==player){
|
||||||
player.addTempSkill('jijiang3');
|
player.addTempSkill('jijiang3');
|
||||||
|
@ -941,17 +940,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(event.current.group=='shu'){
|
else if(event.current.group=='shu'){
|
||||||
const next=event.current.promises.chooseToRespond('是否替'+get.translation(player)+'打出一张杀?',{name:'sha'});
|
const chooseToRespondEvent=event.current.promises.chooseToRespond('是否替'+get.translation(player)+'打出一张杀?',{name:'sha'});
|
||||||
next.set('ai',()=>{
|
chooseToRespondEvent.set('ai',()=>{
|
||||||
const event=_status.event;
|
const event=_status.event;
|
||||||
return (get.attitude(event.player,event.source)-2);
|
return (get.attitude(event.player,event.source)-2);
|
||||||
});
|
});
|
||||||
next.set('source',player);
|
chooseToRespondEvent.set('source',player);
|
||||||
next.set('jijiang',true);
|
chooseToRespondEvent.set('jijiang',true);
|
||||||
next.set('skillwarn','替'+get.translation(player)+'打出一张杀');
|
chooseToRespondEvent.set('skillwarn','替'+get.translation(player)+'打出一张杀');
|
||||||
next.noOrdering=true;
|
chooseToRespondEvent.noOrdering=true;
|
||||||
next.autochoose=lib.filter.autoRespondSha;
|
chooseToRespondEvent.autochoose=lib.filter.autoRespondSha;
|
||||||
({bool,card,cards}=(await next).result);
|
const {bool,card,cards}=(await chooseToRespondEvent).result;
|
||||||
if(bool){
|
if(bool){
|
||||||
trigger.card=card;
|
trigger.card=card;
|
||||||
trigger.cards=cards;
|
trigger.cards=cards;
|
||||||
|
|
Loading…
Reference in New Issue