mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Backport the non-toggling melee auto-attack verbs. 1.12 ships only the toggling AttackTarget (FUN_006131A0), so /startattack can't guarantee it won't cancel an in-progress swing. These call the engine's own start (FUN_005ECB70, sends CMSG_ATTACKSWING) and stop (FUN_005ECAC0) primitives directly, split into the two idempotent verbs. StartAttack takes an optional unit-token target (resolved under pcall so a name/bad token can't raise, falling back to the current target); with no arg it validates and attacks the current target via FUN_00612DF0.