fix(fight): 战斗修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user