Script::UnitIsTrivial
function · ui · orchestration
- Address
0x519d70· 104 bytes, up to0x519dd7- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function UnitIsTrivial
- Confidence
- inferred
- Name from
- the community database (idb)
- Finding
- ui/unitlevels#trivial-units
Finding: Trivial units in ui: unit levels and the gray range
0x5f0700(unit) answers whether a unit is below the active player's level by more than the table entry: the unit is not a player object (type bit 0x10 clear), the active player exists and playerLevel - unitLevel
is above gap[playerLevel / 5] (12 from index 20), both raw levels. UnitIsTrivial(unit) pushes 1 for a true answer and nil otherwise, with a Usage: check; the civilian test (unitinfo#flag-predicates) and the plate's skull rule call the same function.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- GetUnitFromToken ui
- IsTrivialUnit objectlayer
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.