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 committed 2019-06-05 18:57:21 -07:00
1 parent 8ba3c195f2
commit 2e906ae090
12 files changed
+166 -112

No files matched your search

-1
View File
@@ -5,7 +5,6 @@ require("battleutils")
--There isn't really any information on this, but due to the fact it falls off BEFORE the target is hit,
--I'm assuming it increases a spell's accuracy modifier instead of giving actual magic accuracy
function onCommandStart(effect, owner, skill, actionContainer)
print('dark seal')
if skill.GetActionType() == ActionType.Magic then
--50 is random guess.
skill.accuracyModifier = skill.accuracyModifier + 50;
+2 -2
View File
@@ -2,9 +2,9 @@ require("modifiers")
--Set magnitude to milliseconds that HF will reduce delay by
function onGain(owner, effect, actionContainer)
owner.SubtractMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
owner.MultiplyMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
end;
function onLose(owner, effect, actionContainer)
owner.AddMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
owner.DivideMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
end;
+1
View File
@@ -6,6 +6,7 @@ supportedSpells = [27346, 27347, 27358, 27357, 27350, 27307]
function onMagicCast(effect, caster, skill)
if supportedSpells[skill.id] then
skill.castTimeMs = skill.castTimeMs * 1.5;
skill.aoeType = TargetFindAOEType.Circle;
skill.aoeRange = 15;
end
+12
View File
@@ -0,0 +1,12 @@
require("modifiers")
--Set magnitude to milliseconds that HF will reduce delay by
function onGain(owner, effect, actionContainer)
end;
function onLose(owner, effect, actionContainer)
end;
function onDamageTaken(effect, attacker, defender, skill, action, actionContainer)
defender.statusEffects.RemoveStatusEffect(effect, actionContainer)
end;
+10
View File
@@ -0,0 +1,10 @@
require("modifiers")
--Set magnitude to milliseconds that HF will reduce delay by
function onGain(owner, effect, actionContainer)
owner.MultiplyMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
end;
function onLose(owner, effect, actionContainer)
owner.DivideMod(modifiersGlobal.AttackDelay, effect.GetMagnitude());
end;
+9
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;