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

This commit is contained in:
昔念
2026-02-01 01:12:44 +08:00
parent 65dce34473
commit 85a90d263a

View File

@@ -3,8 +3,6 @@ package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"github.com/alpacahq/alpacadecimal"
)
// 32. 进攻类技能有n%几率秒杀对方;a1: n 千分比)
@@ -29,7 +27,7 @@ func (e *NewSel32) OnSkill() bool {
if !e.Ctx().SkillEntity.Hit {
return true
}
success, _, _ := e.Input.Player.Roll(int(e.Args()[0].Div(alpacadecimal.NewFromInt(10)).IntPart()), 100)
success, _, _ := e.Input.Player.Roll(int(e.Args()[0].IntPart()), 1000)
if !success {
return true
}