diff options
Diffstat (limited to 'internal/game/combat_attack.go')
| -rw-r--r-- | internal/game/combat_attack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/combat_attack.go b/internal/game/combat_attack.go index 36a496b..bae210b 100644 --- a/internal/game/combat_attack.go +++ b/internal/game/combat_attack.go @@ -7,6 +7,7 @@ import ( "strconv" "strings" + "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/color" "thehouseoficarus/internal/combat" "thehouseoficarus/internal/engine" @@ -198,6 +199,10 @@ func (g *Game) startCombat(sess *net.Session, p *player.Player, mob *world.MobIn return false } + if p.Action != nil && p.Action.Type == behavior.TypeTriggerModule { + return true + } + p.AttackTimer++ if float64(p.AttackTimer) >= g.playerWeaponSpeed(p) { p.AttackTimer = 0 |
