Skip to content

Commit 73b50d8

Browse files
authored
Fix clorinde E-NA counter and atkspd not applying (#2323)
1 parent ae3b232 commit 73b50d8

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

internal/characters/clorinde/attack.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

internal/characters/clorinde/clorinde.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
5560
func (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

6978
func (c *char) ActionReady(a action.Action, p map[string]int) (bool, action.Failure) {

0 commit comments

Comments
 (0)