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 ____CardBaseModifier = require("cards.CardBaseModifier") local CardBaseModifier = ____CardBaseModifier.CardBaseModifier local ____dota_ts_adapter = require("lib.dota_ts_adapter") local registerModifier = ____dota_ts_adapter.registerModifier ____exports.modifier_card_49 = __TS__Class() local modifier_card_49 = ____exports.modifier_card_49 modifier_card_49.name = "modifier_card_49" modifier_card_49.____file_path = "scripts/vscripts/cards/examples/card_49_modifier.lua" __TS__ClassExtends(modifier_card_49, CardBaseModifier) function modifier_card_49.prototype.OnDestroy(self) if not IsServer() then return end local hero = self:GetParent() if not hero or not IsValidEntity(hero) then return end local player = hero:GetPlayerOwner() if player ~= nil and player.cardSystem ~= nil then player.cardSystem:PushRerollCostToClient() end end function modifier_card_49.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 player.cardSystem:RefreshCard49DailyFreeReroll() player.cardSystem:ShowCardSelection(3, "modifier_card_49_bonus_selection") return nil end ) end function modifier_card_49.prototype.IsHidden(self) return true end modifier_card_49 = __TS__Decorate( modifier_card_49, modifier_card_49, {registerModifier(nil)}, {kind = "class", name = "modifier_card_49"} ) ____exports.modifier_card_49 = modifier_card_49 return ____exports