project-meteor-server/data/scripts/effects/keen_flurry.lua
Yogurt 00017468cc New scripts
New scripts for commands and effects that use the new function
signatures and work with the new statuseffectcontainer
2019-05-29 23:05:40 -07:00

15 lines
428 B
Lua

require("battleutils")
--Untraited reduces cooldown by 50%
--Traited reduces cooldown by 100%
function onCommandStart(effect, owner, skill, actionContainer)
if skill.GetCommandType() == CommandType.Weaponskill then
local reduction = 0.5;
if effect.GetTier() == 2 then
reduction = 1.0;
end
skill.recastTimeMs = skill.recastTimeMs - (reduction * skill.recastTimeMs);
end
end;