fix(fight): 移除无用依赖并优化技能效果逻辑 - 移除了github.com/alpacahq/alpacadecimal依赖,简化了生命值恢复计算逻辑 - 修复了effect_4_5.go中技能参数索引错误,统一了概率判定和属性设置的参数使用
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user