Skip to content

Commit f6de948

Browse files
committed
fixed normal attack frames
1 parent ff8cb4b commit f6de948

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

internal/characters/lauma/attack.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
var (
1515
attackFrames [][]int
1616

17-
attackDeerFrames = []int{17, 19, 33}
18-
1917
attackHitmarks = []int{14, 11, 16}
2018
attackOffsets = []float64{0, 0, 0}
2119
attackHitboxes = [][]float64{{2.5, 8}, {2.5, 8}, {4, 8}}
@@ -77,12 +75,7 @@ func (c *char) Attack(p map[string]int) (action.Info, error) {
7775
defer c.AdvanceNormalIndex()
7876

7977
return action.Info{
80-
Frames: func(next action.Action) int {
81-
if c.deerStateReady && next == action.ActionCharge {
82-
return attackDeerFrames[c.NormalCounter]
83-
}
84-
return attackFrames[c.NormalCounter][next]
85-
},
78+
Frames: frames.NewAttackFunc(c.Character, attackFrames),
8679
AnimationLength: attackFrames[c.NormalCounter][action.InvalidAction],
8780
CanQueueAfter: attackHitmarks[c.NormalCounter],
8881
State: action.NormalAttackState,

0 commit comments

Comments
 (0)