- .text:007C078D Script_UnitAffectingCombat proc near ; DATA XREF: .data:010B91FCo
- .text:007C078D
- .text:007C078D arg_0 = dword ptr 8
- .text:007C078D
- .text:007C078D 55 push ebp
- .text:007C078E 8B EC mov ebp, esp
- .text:007C0790 56 push esi
- .text:007C0791 8B 75 08 mov esi, [ebp+arg_0]
- .text:007C0794 6A 01 push 1
- .text:007C0796 56 push esi
- .text:007C0797 E8 12 50 CF FF call lua_isstring
- .text:007C079C 59 pop ecx
- .text:007C079D 59 pop ecx
- .text:007C079E 85 C0 test eax, eax
- .text:007C07A0 75 0F jnz short loc_7C07B1
- .text:007C07A2 68 00 CF E3 00 push offset aUsageUnitaffec ; "Usage: UnitAffectingCombat(\"unit\")"
- .text:007C07A7 56 push esi
- .text:007C07A8 E8 8F 61 CF FF call LuaL_error
- .text:007C07AD 33 C0 xor eax, eax
- .text:007C07AF EB 3B jmp short loc_7C07EC
- .text:007C07B1 ; ---------------------------------------------------------------------------
- .text:007C07B1
- .text:007C07B1 loc_7C07B1: ; CODE XREF: Script_UnitAffectingCombat+13j
- .text:007C07B1 6A 00 push 0
- .text:007C07B3 6A 01 push 1
- .text:007C07B5 56 push esi
- .text:007C07B6 E8 48 51 CF FF call lua_tolstring
- .text:007C07BB 50 push eax
- .text:007C07BC E8 FF D9 FF FF call Script_GetGUIDFromToken2
- .text:007C07C1 83 C4 10 add esp, 10h
- .text:007C07C4 85 C0 test eax, eax
- .text:007C07C6 74 18 jz short loc_7C07E0
- .text:007C07C8 8B 80 24 01 00 00 mov eax, [eax+124h]
- .text:007C07CE 8B 80 4C 01 00 00 mov eax, [eax+14Ch]
- .text:007C07D4 C1 E8 13 shr eax, 13h
- .text:007C07D7 A8 01 test al, 1
- .text:007C07D9 74 05 jz short loc_7C07E0
- .text:007C07DB 33 C0 xor eax, eax
- .text:007C07DD 40 inc eax
- .text:007C07DE EB 02 jmp short loc_7C07E2
- .text:007C07E0 ; ---------------------------------------------------------------------------
- .text:007C07E0
- .text:007C07E0 loc_7C07E0: ; CODE XREF: Script_UnitAffectingCombat+39j
- .text:007C07E0 ; Script_UnitAffectingCombat+4Cj
- .text:007C07E0 33 C0 xor eax, eax
- .text:007C07E2
- .text:007C07E2 loc_7C07E2: ; CODE XREF: Script_UnitAffectingCombat+51j
- .text:007C07E2 50 push eax
- .text:007C07E3 56 push esi
- .text:007C07E4 E8 5C 54 CF FF call lua_pushboolean
- .text:007C07E9 33 C0 xor eax, eax
- .text:007C07EB 40 inc eax
- .text:007C07EC
- .text:007C07EC loc_7C07EC: ; CODE XREF: Script_UnitAffectingCombat+22j
- .text:007C07EC 59 pop ecx
- .text:007C07ED 59 pop ecx
- .text:007C07EE 5E pop esi
- .text:007C07EF 5D pop ebp
- .text:007C07F0 C3 retn
- .text:007C07F0 Script_UnitAffectingCombat endp