refactor(fight): 重构战斗结束逻辑,统一使用Over方法处理逃跑、掉线和超时情况
This commit is contained in:
@@ -106,7 +106,7 @@ func (h Controller) UseSkill(data *fight.UseSkillInboundInfo, c *player.Player)
|
||||
// 战斗逃跑
|
||||
func (h Controller) Escape(data *fight.EscapeFightInboundInfo, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
|
||||
|
||||
c.FightC.Escape(c)
|
||||
c.FightC.Over(c,info.BattleOverReason.PlayerEscape)
|
||||
return nil, 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user