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

51 lines
2.0 KiB
Lua

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 ____dota_ts_adapter = require("lib.dota_ts_adapter")
local BaseAbility = ____dota_ts_adapter.BaseAbility
local BaseModifier = ____dota_ts_adapter.BaseModifier
local registerAbility = ____dota_ts_adapter.registerAbility
local registerModifier = ____dota_ts_adapter.registerModifier
____exports.no_healthbar = __TS__Class()
local no_healthbar = ____exports.no_healthbar
no_healthbar.name = "no_healthbar"
no_healthbar.____file_path = "scripts/vscripts/abilities/no_healthbar.lua"
__TS__ClassExtends(no_healthbar, BaseAbility)
function no_healthbar.prototype.GetIntrinsicModifierName(self)
return "modifier_no_healthbar"
end
no_healthbar = __TS__Decorate(
no_healthbar,
no_healthbar,
{registerAbility(nil)},
{kind = "class", name = "no_healthbar"}
)
____exports.no_healthbar = no_healthbar
____exports.modifier_no_healthbar = __TS__Class()
local modifier_no_healthbar = ____exports.modifier_no_healthbar
modifier_no_healthbar.name = "modifier_no_healthbar"
modifier_no_healthbar.____file_path = "scripts/vscripts/abilities/no_healthbar.lua"
__TS__ClassExtends(modifier_no_healthbar, BaseModifier)
function modifier_no_healthbar.prototype.IsHidden(self)
return true
end
function modifier_no_healthbar.prototype.IsPurgable(self)
return false
end
function modifier_no_healthbar.prototype.IsDebuff(self)
return false
end
function modifier_no_healthbar.prototype.CheckState(self)
return {[MODIFIER_STATE_NO_HEALTH_BAR] = true, [MODIFIER_STATE_TAUNTED] = false, [MODIFIER_STATE_SILENCED] = false}
end
modifier_no_healthbar = __TS__Decorate(
modifier_no_healthbar,
modifier_no_healthbar,
{registerModifier(nil)},
{kind = "class", name = "modifier_no_healthbar"}
)
____exports.modifier_no_healthbar = modifier_no_healthbar
return ____exports