mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
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
23 lines
597 B
Lua
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; |