Skip to content

Commit 04e4f59

Browse files
committed
Fix redundant check in skill
1 parent 9959fb4 commit 04e4f59

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

internal/characters/jahoda/skill.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,8 @@ func (c *char) fillFlaskGauge(amount int) func() {
198198
Write("previous flask gauge", prevFlaskGauge).
199199
Write("current flask gauge", c.flaskGauge)
200200

201-
// if the flask is full OR the max duration of the state is reached
202-
// OR the skill is rescast, drain the flask
203-
if c.flaskGauge >= flaskGaugeMax || !c.StatusIsActive(shadowPursuitKey) || c.Core.F >= shadowPursuitMaxDuration+c.skillSrc {
201+
// if the flask is full drain the flask
202+
if c.flaskGauge >= flaskGaugeMax {
204203
c.Core.Tasks.Add(c.drainFlask(c.skillSrc), drainFlaskHitmark)
205204
return
206205
}

0 commit comments

Comments
 (0)