Skip to content

Commit

Permalink
Fix obsidiancodex 4pc icd (genshinsim#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
shizukayuki authored Nov 28, 2024
1 parent 8d255f1 commit 458e269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/artifacts/obsidiancodex/obsidiancodex.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ func NewSet(c *core.Core, char *character.CharWrapper, count int, param map[stri
if char.StatusIsActive(icdKey) {
return false
}
char.AddStatus(icdKey, 60, true)
s.consumeCount += amount
if s.consumeCount >= 1 {
s.consumeCount = 0
char.AddStatus(icdKey, 60, true)
char.AddStatMod(character.StatMod{
Base: modifier.NewBaseWithHitlag("obsidiancodex-4pc", 6*60),
Amount: func() ([]float64, bool) {
Expand Down

0 comments on commit 458e269

Please sign in to comment.