Skip to content

Commit

Permalink
Fix xilonen nightsoul not ending properly (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
shizukayuki authored Oct 26, 2024
1 parent 215b365 commit db1ffde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/characters/xilonen/attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func init() {
func (c *char) Attack(p map[string]int) (action.Info, error) {
if c.canUseNightsoul() {
return c.nightsoulAttack(), nil
} else if c.nightsoulState.HasBlessing() {
// OnRemoved is sometimes called after the next action is executed. so we need to check/exit nightsoul here too
c.exitNightsoul()
}

ai := combat.AttackInfo{
Expand Down

0 comments on commit db1ffde

Please sign in to comment.