Files
2HUCardTDGame/scripts/vscripts/modifiers/modifier_cooldown_reduce.lua
2021-10-24 15:36:18 -04:00

35 lines
561 B
Lua
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- CD降低或延长超过800负面
modifier_cooldown_reduce = class({})
local public = modifier_cooldown_reduce
local m_modifier_funcs=
{
MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE,
}
function public:IsHidden()
return true
end
function public:IsDebuff()
return false
end
function public:IsPurgable()
return false
end
function public:DeclareFunctions()
return m_modifier_funcs
end
function public:GetModifierPercentageCooldown()
if self:GetStackCount() <= 800 then
return self:GetStackCount()
else
return -(self:GetStackCount() - 800)
end
end