fix(socket): 修复socket广播和退出逻辑中的返回值错误

- 修正了Broadcast方法中错误的返回值true为false
- 修正了QuitSelf方法中player遍历的返回值从true改为false
- 在玩家退出时添加了睡眠模式错误码通知消息

feat(fight): 统一技能使用方法命名并修复战斗伤害计算逻辑

- 将所有技能使用方法名从Skill_Useed重命名为SkillUseed以保持一致性
This commit is contained in:
昔念
2026-01-25 17:36:40 +08:00
parent 2df2f63593
commit 4dd05726af
15 changed files with 30 additions and 19 deletions

View File

@@ -249,7 +249,7 @@ func (f *FightC) enterturn(firstAttack, secondAttack *action.SelectSkillAction)
//技能使用后
attacker.Exec(func(effect input.Effect) bool { //技能使用后的我方效果
effect.Ctx().SkillEntity = currentSkill
effect.Skill_Useed()
effect.SkillUseed()
return true
})
defender.Exec(func(effect input.Effect) bool {