33 lines
977 B
Lua
33 lines
977 B
Lua
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
local ____exports = {}
|
|
local ____dota_ts_adapter = require("lib.dota_ts_adapter")
|
|
local registerEntityFunction = ____dota_ts_adapter.registerEntityFunction
|
|
local ____modifier_swamp_slow = require("abilities.modifiers.modifier_swamp_slow")
|
|
local modifier_swamp_slow = ____modifier_swamp_slow.modifier_swamp_slow
|
|
registerEntityFunction(
|
|
nil,
|
|
"StartTouch",
|
|
function(____, trigger)
|
|
local ent = trigger.activator
|
|
if ent ~= nil then
|
|
ent:AddNewModifier(
|
|
ent,
|
|
getModifierSourceAbility(nil, ent),
|
|
modifier_swamp_slow.name,
|
|
{}
|
|
)
|
|
end
|
|
end
|
|
)
|
|
registerEntityFunction(
|
|
nil,
|
|
"EndTouch",
|
|
function(____, trigger)
|
|
local ent = trigger.activator
|
|
if ent ~= nil then
|
|
ent:RemoveModifierByName(modifier_swamp_slow.name)
|
|
end
|
|
end
|
|
)
|
|
return ____exports
|