2018-02-15 13:20:46 -06:00
|
|
|
require("global");
|
|
|
|
require("ability");
|
|
|
|
|
|
|
|
function onAbilityPrepare(caster, target, ability)
|
|
|
|
return 0;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function onAbilityStart(caster, target, ability)
|
|
|
|
return 0;
|
|
|
|
end;
|
|
|
|
|
2018-04-18 16:06:41 -05:00
|
|
|
function onSkillFinish(caster, target, skill, action, actionContainer)
|
2018-05-27 18:07:52 -05:00
|
|
|
--For some reason, light shot's hitNum is always 1 (or 0, idk), even with barrage.
|
|
|
|
--If you set the hitnum like any other multi-hit WS it will play the animation repeatedly.
|
|
|
|
action.hitNum = 1;
|
|
|
|
|
2018-04-18 16:06:41 -05:00
|
|
|
action.amount = skill.basePotency;
|
|
|
|
--DoAction handles rates, buffs, dealing damage
|
|
|
|
action.DoAction(caster, target, skill, actionContainer);
|
2018-02-15 13:20:46 -06:00
|
|
|
end;
|