Combat fixes and additions

Add default status gain and loss ids for status effects so buffs and
debuffs can have different ids.
Add sleep, slow, and slowcast

Fix sacred prism not slowing casts
Fix some incorrect text ids in battle commands
This commit is contained in:
Yogurt 2019-06-05 18:57:21 -07:00
parent 8ba3c195f2
commit 2e906ae090
12 changed files with 166 additions and 112 deletions

View file

@ -0,0 +1,9 @@
require("modifiers")
require("battleutils")
--Increases range of a single spell, no clue by how much, 25% is a random guess
--It isn't clear if it has an effect on the aoe portion of skills or just the normal range, i've seen people on the OF say both.
--It also increased height of skills
function onMagicCast(effect, caster, skill)
skill.castTimeMs = skill.castTimeMs * 1.5;
end;