fix: 移除战斗结束时的广播调用
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-08 20:03:09 +08:00
committed by cnb
parent 25e853fa8c
commit d8beb39e9a

View File

@@ -321,12 +321,12 @@ func (f *FightC) enterturn(firstAttack, secondAttack *action.SelectSkillAction)
}) })
f.Switch = make(map[uint32]*action.ActiveSwitchAction) f.Switch = make(map[uint32]*action.ActiveSwitchAction)
if f.closefight && f.Info.Mode == info.BattleMode.PET_MELEE { if f.closefight && f.Info.Mode == info.BattleMode.PET_MELEE {
f.Broadcast(func(fighter *input.Input) { // f.Broadcast(func(fighter *input.Input) {
if fighter.UserID != f.WinnerId { // if fighter.UserID != f.WinnerId {
fighter.Player.SendPackCmd(2505, &attackValueResult) // fighter.Player.SendPackCmd(2505, &attackValueResult)
} // }
}) // })
return return
} }
f.Broadcast(func(fighter *input.Input) { f.Broadcast(func(fighter *input.Input) {