选择随从后增加广播消息

This commit is contained in:
zhl 2021-03-08 10:25:42 +08:00
parent c175acb165
commit 7e25ba188a

View File

@ -98,6 +98,16 @@ export class SelectPetCommand extends Command<CardGameState, {
dbpt_cnt,
oldpos
}
this.room.broadcast('select_pet_s2c', {
srcplayer: player.id,
card: targetCard.effect,
cardpoint,
eff_cnt,
dstplayer: playerId,
dstpet: pos,
dbpt_cnt,
oldpos
}, {except: client})
let time = this.room.battleMan.useCard(data)
await this.delay(time)
const multipEat = !!this.state.rules.get(RULE_MULTIPLEEAT)