Appearance
sdk.combat_safety
Fail-closed combat/PvP/AoE safety for shipped high-level bots. Low-level Packet/LocalPlayer methods intentionally remain primitives.
lua
local M = require("sdk.combat_safety")Constants
Lua 5.4 has no enums — these are integer (or string) fields on the module.
| Name | Value | Summary |
|---|---|---|
Guard | Guard | Combat safety guard class. |
new
function · new(options?: CombatSafetyOptions): CombatSafetyGuard
Construct a Guard, merge defaults, index friends, register in the weak guards set. Weak keys let GC drop unused instances; ensure_bindings then has nothing to pump.
Parameters
| Name | Type | Summary |
|---|---|---|
options | CombatSafetyOptions | — |
Returns
| Type | Summary |
|---|---|
CombatSafetyGuard | — |
default
function · default(): CombatSafetyGuard
Process-wide default Guard (owner_name sdk.combat_safety). CaveBot and rotations share this unless they new().
Returns
| Type | Summary |
|---|---|
CombatSafetyGuard | — |