61 lines
2.4 KiB
Lua
61 lines
2.4 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.ghost_evasive = __TS__Class()
|
|
local ghost_evasive = ____exports.ghost_evasive
|
|
ghost_evasive.name = "ghost_evasive"
|
|
ghost_evasive.____file_path = "scripts/vscripts/abilities/creep/ghost_evasive.lua"
|
|
__TS__ClassExtends(ghost_evasive, BaseAbility)
|
|
function ghost_evasive.prototype.GetIntrinsicModifierName(self)
|
|
return "modifier_ghost_evasive_passive"
|
|
end
|
|
ghost_evasive = __TS__Decorate(
|
|
ghost_evasive,
|
|
ghost_evasive,
|
|
{registerAbility(nil)},
|
|
{kind = "class", name = "ghost_evasive"}
|
|
)
|
|
____exports.ghost_evasive = ghost_evasive
|
|
____exports.modifier_ghost_evasive_passive = __TS__Class()
|
|
local modifier_ghost_evasive_passive = ____exports.modifier_ghost_evasive_passive
|
|
modifier_ghost_evasive_passive.name = "modifier_ghost_evasive_passive"
|
|
modifier_ghost_evasive_passive.____file_path = "scripts/vscripts/abilities/creep/ghost_evasive.lua"
|
|
__TS__ClassExtends(modifier_ghost_evasive_passive, BaseModifier)
|
|
function modifier_ghost_evasive_passive.prototype.IsHidden(self)
|
|
return true
|
|
end
|
|
function modifier_ghost_evasive_passive.prototype.IsDebuff(self)
|
|
return false
|
|
end
|
|
function modifier_ghost_evasive_passive.prototype.IsPurgable(self)
|
|
return false
|
|
end
|
|
function modifier_ghost_evasive_passive.prototype.DeclareFunctions(self)
|
|
return {MODIFIER_PROPERTY_EVASION_CONSTANT}
|
|
end
|
|
function modifier_ghost_evasive_passive.prototype.GetModifierEvasion_Constant(self, event)
|
|
local ab = self:GetAbility()
|
|
if not ab then
|
|
return 0
|
|
end
|
|
return ab:GetSpecialValueFor("evasive")
|
|
end
|
|
function modifier_ghost_evasive_passive.prototype.CheckState(self)
|
|
return {[MODIFIER_STATE_FLYING] = true, [MODIFIER_STATE_NO_UNIT_COLLISION] = true}
|
|
end
|
|
modifier_ghost_evasive_passive = __TS__Decorate(
|
|
modifier_ghost_evasive_passive,
|
|
modifier_ghost_evasive_passive,
|
|
{registerModifier(nil)},
|
|
{kind = "class", name = "modifier_ghost_evasive_passive"}
|
|
)
|
|
____exports.modifier_ghost_evasive_passive = modifier_ghost_evasive_passive
|
|
return ____exports
|