Commit Graph
17 Commits
Author SHA1 Message Date
Brues 90a580d75d Add Game::Lua::PushBool helper, sweep condition ? 1 : 0 patterns
PushBool(L, bool) wraps lua_pushboolean and centralizes the bool→int
conversion the engine ABI requires. All ~50 sites doing
`PushBoolean(L, condition ? 1 : 0)` collapse to `PushBool(L, condition)`.
Non-PushBoolean callers passing bool→int (Fire_*, FireGetItemInfoReceived,
etc.) switched to `static_cast<int>(...)`. NameCache settings file output
relies on the default ostream bool→"0"/"1" formatting.

Literal `PushBoolean(L, 0)` / `PushBoolean(L, 1)` left alone — they're
already explicit int values.
2026-05-16 21:39:46 -05:00
Brues 52fc53a08c UnitIsInMyGuild: drop pcall(UnitName), prefix-gate the token resolver
Prefix-check known tokens inline instead of going through Lua's
UnitName via pcall to figure out "is this a token?". OOR-token name
resolution now goes through FUN_TOKEN_TO_GUID + the engine's player
NameCache directly. Literal-name input still walks the guild roster
by strcmp, unchanged.
2026-05-15 21:26:09 -05:00
Brues a9905df9e1 UnitClassBase 2026-05-15 13:32:46 -05:00
Brues fa3547be31 UnitStandState 2026-05-14 23:21:43 -05:00
Brues e7c72b124e DBC/GUID cleanup 2026-05-14 14:24:11 -05:00
Brues de86b80a05 GetUnitSpeed(unit) 2026-05-14 00:01:06 -05:00
Brues 1914eb7ddd PLAYER_STARTED_MOVING / PLAYER_STOPPED_MOVING 2026-05-13 18:43:32 -05:00
Brues 2eea13ce59 GetPlayerInfoByGUID(guid) 2026-05-11 11:26:21 -05:00
Brues 8200d97d5d IsAssistingRitual 2026-05-11 02:31:47 -05:00
Brues 976ef735c3 UnitIsInMyGuild(unitOrName) 2026-05-10 23:52:10 -05:00
Brues 43dd3b02df UnitIsPossessed(unit) 2026-05-10 21:38:44 -05:00
Brues 299b0568ce LE_UNIT_STAT_* 2026-05-10 02:16:40 -05:00
Brues 0d9ab8b442 IsMounted, IsStealthed, IsFalling, IsSwimming 2026-05-09 20:44:35 -05:00
Brues 8b5d14c5cd UnitIsAFK / UnitIsDND 2026-05-09 11:20:45 -05:00
Brues b893b8eff1 GetFactionParentID and GetTalentIDByIndex 2026-05-08 23:05:43 -05:00
Brues 22dda39e0e UnitGUID(unit) 2026-05-08 01:06:30 -05:00
Brues bc37fc0444 InCombatLockdown 2026-05-08 00:59:57 -05:00