2018-02-15 13:20:46 -06:00
|
|
|
require("global");
|
|
|
|
require("weaponskill");
|
|
|
|
|
|
|
|
function onSkillPrepare(caster, target, skill)
|
|
|
|
return 0;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function onSkillStart(caster, target, skill)
|
|
|
|
return 0;
|
|
|
|
end;
|
|
|
|
|
|
|
|
--Increased enmity
|
|
|
|
function onCombo(caster, target, skill)
|
2018-04-18 16:06:41 -05:00
|
|
|
skill.enmityModifier = 2.5;
|
2018-02-15 13:20:46 -06:00
|
|
|
end;
|
|
|
|
|
2018-04-18 16:06:41 -05:00
|
|
|
function onSkillFinish(caster, target, skill, action, actionContainer)
|
2018-02-15 13:20:46 -06:00
|
|
|
--Increased damage with higher hp
|
2018-04-18 16:06:41 -05:00
|
|
|
--random guess
|
2018-02-15 13:20:46 -06:00
|
|
|
local potencyModifier = caster:GetHPP() + 25;
|
2018-04-18 16:06:41 -05:00
|
|
|
|
|
|
|
skill.basePotency = skill.basePotency * potencyModifier;
|
|
|
|
|
|
|
|
--calculate ws damage
|
|
|
|
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;
|