Skip to content

Commit a9121e3

Browse files
authored
Fix xilonen nightsoul hitlag and skill docs (#2319)
1 parent 5db8f5c commit a9121e3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

internal/characters/xilonen/skill.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *char) canUseNightsoul() bool {
6060
func (c *char) enterNightsoul() {
6161
c.nightsoulState.EnterBlessing(45)
6262
c.nightsoulSrc = c.Core.F
63-
c.Core.Tasks.Add(c.nightsoulPointReduceFunc(c.nightsoulSrc), 6)
63+
c.nightsoulPointReduceTask(c.nightsoulSrc)
6464
c.NormalHitNum = rollerHitNum
6565
c.NormalCounter = 0
6666

@@ -89,15 +89,15 @@ func (c *char) exitNightsoul() {
8989
c.DeleteStatus(c6key)
9090
}
9191

92-
func (c *char) nightsoulPointReduceFunc(src int) func() {
93-
return func() {
92+
func (c *char) nightsoulPointReduceTask(src int) {
93+
const tickInterval = .1
94+
c.QueueCharTask(func() {
9495
if c.nightsoulSrc != src {
9596
return
9697
}
98+
// reduce 0.5 point every 6f, which is 5 per second
9799
c.reduceNightsoulPoints(0.5)
98-
// reduce 0.5 point per 6, which is 5 per second
99-
c.Core.Tasks.Add(c.nightsoulPointReduceFunc(src), 6)
100-
}
100+
}, 60*tickInterval)
101101
}
102102

103103
func (c *char) applySamplerShred(ele attributes.Element, enemies []combat.Enemy) {

ui/packages/docs/src/components/Hitlag/character_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3905,7 +3905,7 @@
39053905
"ability": "E",
39063906
"hitHaltTimeScale": 0.01,
39073907
"canBeDefenseHalt": true,
3908-
"deployable": false
3908+
"deployable": true
39093909
}
39103910
]
39113911
},

0 commit comments

Comments
 (0)