选择随从后增加广播消息
This commit is contained in:
parent
c175acb165
commit
7e25ba188a
@ -98,6 +98,16 @@ export class SelectPetCommand extends Command<CardGameState, {
|
|||||||
dbpt_cnt,
|
dbpt_cnt,
|
||||||
oldpos
|
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)
|
let time = this.room.battleMan.useCard(data)
|
||||||
await this.delay(time)
|
await this.delay(time)
|
||||||
const multipEat = !!this.state.rules.get(RULE_MULTIPLEEAT)
|
const multipEat = !!this.state.rules.get(RULE_MULTIPLEEAT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user