From 8d09190153aeb452a4eb292d8be8565a9caa419d Mon Sep 17 00:00:00 2001 From: RobinCode Date: Wed, 20 Sep 2023 01:56:47 +0800 Subject: [PATCH] Fix CDOTA_Item.LaunchLoot (#29) --- build/vscripts/api/data/index.ts | 5 +++++ files/vscripts/api.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build/vscripts/api/data/index.ts b/build/vscripts/api/data/index.ts index b38acbb..15a9e91 100644 --- a/build/vscripts/api/data/index.ts +++ b/build/vscripts/api/data/index.ts @@ -862,6 +862,11 @@ export const functionExtensions: Record = { 1: ['to_angle'], }, }, + 'CDOTA_Item.LaunchLoot': { + args: { + 4: ['teleportOwner', ['CDOTA_BaseNPC_Hero', 'nil']], + }, + }, }; export const extraDeclarations = (() => { diff --git a/files/vscripts/api.json b/files/vscripts/api.json index a02db22..1705f0f 100644 --- a/files/vscripts/api.json +++ b/files/vscripts/api.json @@ -13305,7 +13305,8 @@ { "name": "teleportOwner", "types": [ - "handle" + "CDOTA_BaseNPC_Hero", + "nil" ] } ]