Skip to content

Commit

Permalink
Merge pull request #883 from k0l11/gilded
Browse files Browse the repository at this point in the history
fix gildeddreams
  • Loading branch information
skippi authored Aug 31, 2022
2 parents 850b975 + 8623df6 commit 6d334fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/artifacts/gildeddreams/gildeddreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,19 @@ func NewSet(c *core.Core, char *character.CharWrapper, count int, param map[stri
})
}
if count >= 4 {
const icdKey = "gd-4pc-icd"
add := func(args ...interface{}) bool {
atk := args[1].(*combat.AttackEvent)
if c.Player.Active() != char.Index {
if atk.Info.ActorIndex != char.Index {
return false
}
if atk.Info.ActorIndex != char.Index {
if char.StatusIsActive(icdKey) {
return false
}
char.AddStatus(icdKey, 8*60, true)

char.AddStatMod(character.StatMod{
Base: modifier.NewBase("gd-4pc", 8*60),
Base: modifier.NewBaseWithHitlag("gd-4pc", 8*60),
AffectedStat: attributes.NoStat,
Amount: func() ([]float64, bool) {
return s.buff, true
Expand Down

0 comments on commit 6d334fe

Please sign in to comment.