aboutsummaryrefslogtreecommitdiff
path: root/internal/game/combat_attack.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 02:29:55 -0400
committerhistoria <[not public]>2026-06-27 02:29:55 -0400
commit6f3d21d6e7f01155ce0c461857a053b43d329392 (patch)
tree51e96b62deb5f99a3d70c3a15ab94c520a1ee8e8 /internal/game/combat_attack.go
parent3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (diff)
downloadthehouseoficarus-6f3d21d6e7f01155ce0c461857a053b43d329392.tar.gz
feat: recall/home cmd, line break option
Diffstat (limited to 'internal/game/combat_attack.go')
-rw-r--r--internal/game/combat_attack.go5
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