initial commit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
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 BaseModifier = ____dota_ts_adapter.BaseModifier
|
||||
local registerModifier = ____dota_ts_adapter.registerModifier
|
||||
____exports.modifier_donate_item = __TS__Class()
|
||||
local modifier_donate_item = ____exports.modifier_donate_item
|
||||
modifier_donate_item.name = "modifier_donate_item"
|
||||
modifier_donate_item.____file_path = "scripts/vscripts/abilities/modifiers/modifier_donate_item.lua"
|
||||
__TS__ClassExtends(modifier_donate_item, BaseModifier)
|
||||
function modifier_donate_item.prototype.IsHidden(self)
|
||||
return true
|
||||
end
|
||||
function modifier_donate_item.prototype.IsPurgable(self)
|
||||
return false
|
||||
end
|
||||
function modifier_donate_item.prototype.IsPurgeException(self)
|
||||
return false
|
||||
end
|
||||
function modifier_donate_item.prototype.RemoveOnDeath(self)
|
||||
return false
|
||||
end
|
||||
function modifier_donate_item.prototype.CheckState(self)
|
||||
return {
|
||||
[MODIFIER_STATE_OUT_OF_GAME] = true,
|
||||
[MODIFIER_STATE_INVULNERABLE] = true,
|
||||
[MODIFIER_STATE_NOT_ON_MINIMAP] = true,
|
||||
[MODIFIER_STATE_COMMAND_RESTRICTED] = true,
|
||||
[MODIFIER_STATE_STUNNED] = true,
|
||||
[MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY] = true,
|
||||
[MODIFIER_STATE_NO_HEALTH_BAR] = true,
|
||||
[MODIFIER_STATE_NO_UNIT_COLLISION] = true,
|
||||
[MODIFIER_STATE_INVISIBLE] = true
|
||||
}
|
||||
end
|
||||
function modifier_donate_item.prototype.OnDestroy(self)
|
||||
if not IsServer() then
|
||||
return
|
||||
end
|
||||
end
|
||||
modifier_donate_item = __TS__Decorate(
|
||||
modifier_donate_item,
|
||||
modifier_donate_item,
|
||||
{registerModifier(nil)},
|
||||
{kind = "class", name = "modifier_donate_item"}
|
||||
)
|
||||
____exports.modifier_donate_item = modifier_donate_item
|
||||
return ____exports
|
||||
Reference in New Issue
Block a user