Skip to content

Commit b011cf0

Browse files
committed
Fixed panic due to deleting status in attackmod
1 parent 7de02b7 commit b011cf0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

internal/characters/skirk/burst.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (c *char) BurstRuin(p map[string]int) (action.Info, error) {
7575

7676
c.c6OnBurstRuin()
7777

78-
c.ConsumeSerpentsSubtlety(7, c.Base.Key.String()+"-burst")
78+
c.ConsumeSerpentsSubtlety(7, c.Base.Key.String()+"-burst-ruin")
7979

8080
c.SetCDWithDelay(action.ActionBurst, 15*60, 0)
8181

@@ -111,7 +111,9 @@ func (c *char) BurstInit() {
111111
c.AddStatus(burstICDKey, 0.1*60, true)
112112
c.burstCount--
113113
if c.burstCount <= 0 {
114-
c.DeleteStatus(burstKey)
114+
// Cannot delete statuses in an attack mod
115+
// c.DeleteStatus(burstKey)
116+
c.AddStatus(burstKey, 0, false)
115117
}
116118
mDmg[attributes.DmgP] = burstDMG[c.burstVoids][c.TalentLvlBurst()]
117119
return mDmg, true
@@ -120,7 +122,7 @@ func (c *char) BurstInit() {
120122
}
121123

122124
func (c *char) BurstExtinction(p map[string]int) (action.Info, error) {
123-
c.AddStatus(burstKey, 12.5*60, true)
125+
c.AddStatus(burstKey, 12.5*60, false)
124126
c.burstCount = 10
125127
c.burstVoids = c.absorbVoidRift()
126128

0 commit comments

Comments
 (0)