fix: 修正效果474参数索引错误
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-14 20:56:17 +08:00
committed by cnb
parent 65d8468520
commit 70e56d6620

View File

@@ -12,10 +12,10 @@ type Effect474 struct {
func (e *Effect474) OnSkill() bool {
if e.IsFirst() { // 先出手
chance := e.Args()[0].IntPart()
chance := e.Args()[1].IntPart()
success, _, _ := e.Input.Player.Roll(int(chance), 100)
if success {
effectType := int8(e.Args()[1].IntPart()) // XX类型
effectType := int8(e.Args()[0].IntPart()) // XX类型
effectValue := int8(e.Args()[2].IntPart()) // 等级+n
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)