fix(fight): 战斗修改

This commit is contained in:
1
2025-11-11 05:54:24 +00:00
parent c6e0d84c1d
commit 65758c799e
44 changed files with 656 additions and 731 deletions

View File

@@ -30,7 +30,7 @@ func (e *Effect117) SetArgs(t *input.Input, a ...int) {
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
}
func (e *Effect117) OnSkill(ctx input.Ctx) bool {
func (e *Effect117) OnSkill() bool {
if !e.Hit() {
return true
}
@@ -49,7 +49,7 @@ func (e *Effect117) OnSkill(ctx input.Ctx) bool {
duration := int(e.Input.FightC.GetRand().Int31n(3)) // 默认随机 1~3 回合
eff.Duration(duration)
ctx.AddEffect(eff)
e.Ctx().Opp.AddEffect(eff)
}
return true