2018-02-15 13:20:46 -06:00
|
|
|
require("global");
|
2019-06-01 21:21:21 -07:00
|
|
|
require("ability");
|
2018-02-15 13:20:46 -06:00
|
|
|
|
|
|
|
function onSkillPrepare(caster, target, skill)
|
|
|
|
return 0;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function onSkillStart(caster, target, skill)
|
|
|
|
return 0;
|
|
|
|
end;
|
2018-04-18 16:06:41 -05:00
|
|
|
|
|
|
|
function onSkillFinish(caster, target, skill, action, actionContainer)
|
2018-02-15 13:20:46 -06:00
|
|
|
--chance to influct stun only when target has no enmity towards you
|
2018-04-18 16:06:41 -05:00
|
|
|
if not (target.hateContainer.HasHateForTarget(caster)) then
|
2018-02-15 13:20:46 -06:00
|
|
|
skill.statusChance = 0.50;
|
|
|
|
end
|
2018-04-18 16:06:41 -05:00
|
|
|
|
|
|
|
--calculate ws damage
|
|
|
|
action.amount = skill.basePotency;
|
|
|
|
|
|
|
|
--DoAction handles rates, buffs, dealing damage
|
|
|
|
action.DoAction(caster, target, skill, actionContainer);
|
|
|
|
|
|
|
|
--Try to apply status effect
|
|
|
|
action.TryStatus(caster, target, skill, actionContainer, true);
|
|
|
|
end;
|