feat(fight): 调整战斗逻辑与伤害计算流程

- 移除 `Over` 方法中的冗余回调参数 `fn`
- 修复部分技能效果中错误的伤害目标对象(Our/Opp)
- 优化战斗循环逻辑,使用 `over` channel 替代 `quit` 作为战斗结束信号
- 增加回合效果执行前的存活状态判断
- 修正伤害计算过程中对血量扣减的逻辑错误
-
This commit is contained in:
2025-11-12 01:19:24 +08:00
parent a0a5163f13
commit 0b5cfac0b2
16 changed files with 73 additions and 71 deletions

View File

@@ -170,7 +170,7 @@ func (h Controller) Escape(data *fight.EscapeFightInboundInfo, c *player.Player)
return nil, 0
}
c.FightC.Over(c, info.BattleOverReason.PlayerEscape, nil)
c.FightC.Over(c, info.BattleOverReason.PlayerEscape)
return nil, 0
}