diff --git a/build/lua/overrides.ts b/build/lua/overrides.ts index d266282..ddcd777 100644 --- a/build/lua/overrides.ts +++ b/build/lua/overrides.ts @@ -89,12 +89,6 @@ export const overrides: Record = { }, }, - 'CBaseEntity.IsPlayerController': { - return: 'this is CDOTAPlayerController', - }, - 'CBaseEntity.IsPlayerPawn': { - return: 'this is CBasePlayerPawn', - }, CreateItem: { args: { purchaser: 'CDOTA_BaseNPC_Hero | undefined', diff --git a/build/lua/utils.ts b/build/lua/utils.ts index 424fe38..c4cff8b 100644 --- a/build/lua/utils.ts +++ b/build/lua/utils.ts @@ -89,6 +89,8 @@ const typePredicates: Record = { 'CDOTA_PlayerResource.IsValidPlayerID': 'playerId is PlayerID', 'CDOTA_PlayerResource.IsValidTeamPlayer': 'playerId is PlayerID', 'CDOTA_PlayerResource.IsValidTeamPlayerID': 'playerId is PlayerID', + 'CBaseEntity.IsPlayerController': 'this is CDOTAPlayerController', + 'CBaseEntity.IsPlayerPawn': 'this is CBasePlayerPawn', 'CDOTABaseAbility.IsItem': 'this is CDOTA_Item', 'ProjectileManager.IsValidProjectile': 'value is ProjectileID', };