fix: 修复战斗模式下的技能和物品使用逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -330,12 +330,12 @@ func (f *FightC) enterturn(firstAttack, secondAttack *action.SelectSkillAction)
|
||||
})
|
||||
f.Switch = make(map[uint32]*action.ActiveSwitchAction)
|
||||
if f.closefight && f.Info.Mode == info.BattleMode.PET_MELEE {
|
||||
f.Broadcast(func(fighter *input.Input) {
|
||||
if fighter.UserID != f.WinnerId {
|
||||
fighter.Player.SendPackCmd(2505, &attackValueResult)
|
||||
}
|
||||
// f.Broadcast(func(fighter *input.Input) {
|
||||
// if fighter.UserID != f.WinnerId {
|
||||
// fighter.Player.SendPackCmd(2505, &attackValueResult)
|
||||
// }
|
||||
|
||||
})
|
||||
// })
|
||||
return
|
||||
}
|
||||
f.Broadcast(func(fighter *input.Input) {
|
||||
|
||||
Reference in New Issue
Block a user