initial commit

This commit is contained in:
achmad
2026-05-29 15:11:31 +07:00
commit 777ee9bad8
1539 changed files with 172449 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {}
local ____battle_pass_server = require("battle_pass_server")
local BattlePassServer = ____battle_pass_server.BattlePassServer
--- Лечит юнита и учитывает лечение союзников для Battle Pass.
-- Вызывайте вместо HealWithParams когда healer — герой игрока, а target — союзник (не сам healer).
function ____exports.HealWithBattlePass(self, target, amount, ability, healer, showOverhead)
if showOverhead == nil then
showOverhead = true
end
target:HealWithParams(
amount,
ability,
false,
showOverhead,
healer,
false
)
local ____temp_2 = amount > 0 and healer
if ____temp_2 then
local ____this_1
____this_1 = healer
local ____opt_0 = ____this_1.IsRealHero
if ____opt_0 ~= nil then
____opt_0 = ____opt_0(____this_1)
end
____temp_2 = ____opt_0
end
if ____temp_2 and target ~= healer then
do
pcall(function()
local playerId = healer:GetPlayerOwnerID()
if playerId >= 0 then
BattlePassServer:getInstance():onHealAlly(playerId, amount)
end
end)
end
end
end
return ____exports