```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

fix(fight): 移除无用依赖并优化技能效果逻辑

- 移除了github.com/alpacahq/alpacadecimal依赖,简化了生命值恢复计算逻辑
- 修复了effect_4_5.go中技能参数索引错误,统一了概率判定和属性设置的参数使用
This commit is contained in:
昔念
2026-03-12 21:01:58 +08:00
parent c59ff550a7
commit 499a0ba5ab
3 changed files with 10 additions and 13 deletions

View File

@@ -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) {