local ____lualib = require("lualib_bundle") local __TS__Class = ____lualib.__TS__Class local __TS__ClassExtends = ____lualib.__TS__ClassExtends local __TS__Decorate = ____lualib.__TS__Decorate local ____exports = {} local ____CardSystem = require("cards.CardSystem") local CardBase = ____CardSystem.CardBase local RegisterCard = ____CardSystem.RegisterCard local ____CardBaseModifier = require("cards.CardBaseModifier") local CardBaseModifier = ____CardBaseModifier.CardBaseModifier local ____dota_ts_adapter = require("lib.dota_ts_adapter") local registerModifier = ____dota_ts_adapter.registerModifier local CARD_ID = 58 ____exports.card_58 = __TS__Class() local card_58 = ____exports.card_58 card_58.name = "card_58" card_58.____file_path = "scripts/vscripts/cards/examples/card_58.lua" __TS__ClassExtends(card_58, CardBase) function card_58.prototype.GetModifierName(self) return "modifier_card_58" end card_58 = __TS__Decorate(card_58, card_58, {RegisterCard}, {kind = "class", name = "card_58"}) ____exports.card_58 = card_58 ____exports.modifier_card_58 = __TS__Class() local modifier_card_58 = ____exports.modifier_card_58 modifier_card_58.name = "modifier_card_58" modifier_card_58.____file_path = "scripts/vscripts/cards/examples/card_58.lua" __TS__ClassExtends(modifier_card_58, CardBaseModifier) function modifier_card_58.prototype.OnCustomCreated(self, params) if not IsServer() then return end local hero = self:GetParent() if not hero or not IsValidEntity(hero) or not hero:IsRealHero() then return end Timers:CreateTimer( 0, function() local player = hero:GetPlayerOwner() if not player or not player.cardSystem then return nil end local extraSelections = math.max( 0, math.floor(self:getCardValue("extra_selections_on_start", 2, CARD_ID)) ) local cardsPerSelection = math.max( 1, math.floor(self:getCardValue("cards_per_selection", 3, CARD_ID)) ) do local i = 0 while i < extraSelections do player.cardSystem:ShowCardSelection(cardsPerSelection, "modifier_card_58_bonus_selection") i = i + 1 end end return nil end ) end function modifier_card_58.prototype.IsHidden(self) return true end modifier_card_58 = __TS__Decorate( modifier_card_58, modifier_card_58, {registerModifier(nil)}, {kind = "class", name = "modifier_card_58"} ) ____exports.modifier_card_58 = modifier_card_58 return ____exports