fix(fight): 战斗修改
This commit is contained in:
@@ -23,13 +23,15 @@ type Effect29 struct {
|
||||
node.EffectNode
|
||||
}
|
||||
|
||||
func (e *Effect29) OnSkill(ctx input.Ctx) bool {
|
||||
func (e *Effect29) OnSkill() bool {
|
||||
if !e.Hit() {
|
||||
return true
|
||||
}
|
||||
|
||||
ctx.DamageZone.Type = info.DamageType.Fixed
|
||||
ctx.DamageZone.Damage = decimal.NewFromInt(int64(e.SideEffectArgs[0]))
|
||||
ctx.Input.Damage(ctx)
|
||||
|
||||
e.Ctx().Opp.Damage(&info.DamageZone{
|
||||
|
||||
Type: info.DamageType.Fixed,
|
||||
Damage: decimal.NewFromInt(int64(e.SideEffectArgs[0])),
|
||||
})
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user