Script::StartDuelUnit
function · ui · primitive
- Address
0x4d4c90· 71 bytes, up to0x4d4cd6- Signature
int __fastcall (lua_State *L)- Meaning
- Challenges the unit of a token to a duel
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/duel#starting-a-duel
Finding: Starting a duel in ui: duels
StartDuel("name") finds the player whose name begins with the text (ClosestObjectMatch over players) and casts the duel spell on
that GUID; with no match or a non-string it does nothing. StartDuelUnit("unit") does the same for a unit token and raises
Usage: StartDuelUnit("unit") for a non-string. The duel spell is the id the spell book keeps when a learned spell's first effect is 0x53.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- CastDuelSpell ui
- Script::GetGUIDFromName ui
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.