File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
internal/characters/clorinde Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,13 @@ func (c *char) skillAttack(_ map[string]int) (action.Info, error) {
153153 }, skillAttackHitmarks [c .normalSCounter ])
154154
155155 defer c .AdvanceNormalIndex ()
156+ n := c .normalSCounter
157+ atkspd := c .Stat (attributes .AtkSpd )
156158
157159 return action.Info {
158- Frames : frames .NewAbilFunc (skillAttackFrames [c .normalSCounter ]),
160+ Frames : func (next action.Action ) int {
161+ return frames .AtkSpdAdjust (skillAttackFrames [n ][next ], atkspd )
162+ },
159163 AnimationLength : skillAttackFrames [c.normalSCounter ][action.InvalidAction ],
160164 CanQueueAfter : skillAttackFrames [c.normalSCounter ][action.ActionBurst ],
161165 State : action .NormalAttackState ,
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ func (c *char) Init() error {
5252 return nil
5353}
5454
55+ func (c * char ) ResetNormalCounter () {
56+ c .normalSCounter = 0
57+ c .Character .ResetNormalCounter ()
58+ }
59+
5560func (c * char ) AdvanceNormalIndex () {
5661 if c .StatusIsActive (skillStateKey ) {
5762 c .normalSCounter ++
@@ -60,10 +65,14 @@ func (c *char) AdvanceNormalIndex() {
6065 }
6166 return
6267 }
63- c .NormalCounter ++
64- if c .NormalCounter == c .NormalHitNum {
65- c .NormalCounter = 0
68+ c .Character .AdvanceNormalIndex ()
69+ }
70+
71+ func (c * char ) NextNormalCounter () int {
72+ if c .StatusIsActive (skillStateKey ) {
73+ return c .normalSCounter + 1
6674 }
75+ return c .Character .NextNormalCounter ()
6776}
6877
6978func (c * char ) ActionReady (a action.Action , p map [string ]int ) (bool , action.Failure ) {
You can’t perform that action at this time.
0 commit comments