mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
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:
parent
8ba3c195f2
commit
2e906ae090
12 changed files with 166 additions and 112 deletions
|
@ -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,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;
|
|
@ -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
data/scripts/effects/sleep.lua
Normal file
12
data/scripts/effects/sleep.lua
Normal 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
data/scripts/effects/slow.lua
Normal file
10
data/scripts/effects/slow.lua
Normal 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
data/scripts/effects/slowcast.lua
Normal file
9
data/scripts/effects/slowcast.lua
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue