diff options
| author | historia <[not public]> | 2026-06-21 22:19:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-21 22:19:17 -0400 |
| commit | a3ae1e6aad696f584d138d9363c05dedff136a65 (patch) | |
| tree | 81e615f7227bc9d1ec79ceefc7311ecde917b074 /internal/game/sys_combat.go | |
| parent | 84072ffe6365ad57c4976e9272762aa6db41de7e (diff) | |
| download | thehouseoficarus-a3ae1e6aad696f584d138d9363c05dedff136a65.tar.gz | |
feat: safespot system implemented
Diffstat (limited to 'internal/game/sys_combat.go')
| -rw-r--r-- | internal/game/sys_combat.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/sys_combat.go b/internal/game/sys_combat.go index 81b2c83..91a07cf 100644 --- a/internal/game/sys_combat.go +++ b/internal/game/sys_combat.go @@ -90,6 +90,9 @@ func (g *Game) checkAggro(sess *net.Session) { if playerLevel > mobLevel*2 { continue } + if g.isSafespotted(p.Name) && g.safespotBlocksMob(p, mob) { + continue + } aggMob := mob g.Ticks.Subscribe(engine.ToTicks(1), func() bool { if combat.GetCombat(p.Name) != nil { |
