Skip to content

Commit

Permalink
Fix Key working when the wrong character attacks (genshinsim#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
RarePossum authored Oct 31, 2023
1 parent f596aa4 commit ea434ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/weapons/sword/keyofkhajnisut/keyofkhajnisut.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func NewWeapon(c *core.Core, char *character.CharWrapper, p info.WeaponProfile)
if char.StatusIsActive(icdKey) {
return false
}
if atk.Info.ActorIndex != char.Index {
return false
}
if atk.Info.AttackTag != attacks.AttackTagElementalArt && atk.Info.AttackTag != attacks.AttackTagElementalArtHold {
return false
}
Expand Down

0 comments on commit ea434ea

Please sign in to comment.