project-meteor-server/data/scripts/commands/weaponskill/spirits_within.lua
yogurt b8d6a943aa Combat changes and bug fixes
Added the combo and proc systems
Added scripts for most weaponskill and spells as well as some abilities and status effects
Added support for multihit attacks
Added AbilityState for abilities
Added hiteffects that change based on an attack's parameters
Added positionals

Changed how targeting works for battlecommands

Fixed bug that occurred when moving or swapping hotbar commands
Fixed bug that occurred when losing status effects
2018-02-15 13:20:46 -06:00

23 lines
597 B
Lua

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)
skill.enmityModifier = 1.5;
end;
function onSkillFinish(caster, target, skill, action)
local damage = math.random(10, 100);
--Increased damage with higher hp
local potencyModifier = caster:GetHPP() + 25;
skill.basePotency = skill.basePotency * (potencyModifier / 100);
return weaponskill.onSkillFinish(caster, target, skill, action)
end;