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

31 lines
521 B
Lua
Executable File
Raw Permalink 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.
-- 魔法消耗降低百分比每层1%最高99%
modifier_manacost_reduce_percent = class({})
local public = modifier_manacost_reduce_percent
local m_modifier_funcs=
{
MODIFIER_PROPERTY_MANACOST_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:GetModifierPercentageManacost()
return math.min(99, self:GetStackCount())
end