选择随从时, 无有效操作时, 轮空
This commit is contained in:
parent
b9525867cf
commit
f4fc33be7b
@ -223,7 +223,9 @@ export class Robot {
|
||||
@wait('playerActTime')
|
||||
private async selectPet() {
|
||||
let data = await assistantUtil.selectPet(this.player, this.room.state);
|
||||
this.reply('select_pet_c2s', data);
|
||||
if (data) {
|
||||
this.reply('select_pet_c2s', data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -230,7 +230,9 @@ export class RobotClient implements Client {
|
||||
@wait('playerActTime')
|
||||
private async selectPet() {
|
||||
let data = await assistantUtil.selectPet(this.selfPlayer, this.svrstate);
|
||||
this.reply('select_pet_c2s', data)
|
||||
if (data) {
|
||||
this.reply('select_pet_c2s', data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -170,10 +170,7 @@ let assistantUtil = {
|
||||
result = spellCards.randomOne();
|
||||
}
|
||||
if (!result) {
|
||||
return {
|
||||
card: result.id,
|
||||
errcode: 1,
|
||||
};
|
||||
return null;
|
||||
}
|
||||
let targetType: SkillTargetType = CfgMan.getTargetByCard(result.effect);
|
||||
let targetPlayer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user