mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 12:47:46 +00: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
27 lines
No EOL
677 B
Lua
27 lines
No EOL
677 B
Lua
require("global");
|
|
require("magic");
|
|
|
|
function onMagicPrepare(caster, target, spell)
|
|
return 0;
|
|
end;
|
|
|
|
function onMagicStart(caster, target, spell)
|
|
return 0;
|
|
end;
|
|
|
|
--Increased damage and conversion to single target
|
|
function onCombo(caster, target, spell)
|
|
spell.aoeType = 0;
|
|
spell.potency = spell.potency * 1.5;
|
|
end;
|
|
|
|
function onMagicFinish(caster, target, spell, action)
|
|
local damage = math.random(10, 100);
|
|
|
|
--Dispels an effect on each target.
|
|
local effects = target.statusEffects.GetStatusEffectsByFlag(16); --lose on dispel
|
|
if effects != nil then
|
|
target.statusEffects.RemoveStatusEffect(effects[0]);
|
|
end;
|
|
return damage;
|
|
end; |