Files
Dota-Zombie-Invasion/scripts/vscripts/cards/card_morning_hooks.lua
T
2026-05-29 15:11:31 +07:00

30 lines
1.1 KiB
Lua

--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {}
local ____custom_game_events = require("custom_game_events")
local ensurePlayerCardSystem = ____custom_game_events.ensurePlayerCardSystem
local ____card_51 = require("cards.examples.card_51")
local notifyCard51MorningStarted = ____card_51.notifyCard51MorningStarted
____exports.notifyCard51MorningStarted = notifyCard51MorningStarted
--- Рассвет: убрать шлак (86) из пула у всех игроков с CardSystem.
function ____exports.notifySlagMorningStarted(self, _morningSequence)
if not IsServer() then
return
end
do
local i = 0
while i < DOTA_MAX_PLAYERS do
do
local pid = i
local cardSystem = ensurePlayerCardSystem(nil, pid)
if not cardSystem then
goto __continue4
end
cardSystem:ClearSlagFromPool()
end
::__continue4::
i = i + 1
end
end
end
return ____exports