Skip to content

Commit

Permalink
fix toukabou shigure passive applying to hit that triggers it
Browse files Browse the repository at this point in the history
  • Loading branch information
k0l11 committed Dec 15, 2022
1 parent 70acf9f commit b9966c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/weapons/sword/toukaboushigure/toukaboushigure.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewWeapon(c *core.Core, char *character.CharWrapper, p weapon.WeaponProfile
},
})

c.Events.Subscribe(event.OnEnemyHit, func(args ...interface{}) bool {
c.Events.Subscribe(event.OnEnemyDamage, func(args ...interface{}) bool {
e, ok := args[0].(*enemy.Enemy)
atk := args[1].(*combat.AttackEvent)
if !ok {
Expand Down

0 comments on commit b9966c8

Please sign in to comment.