fix: Fixes various memory leaks and spells (#1786)
### Summary - Fixes various memory leaks related to spells - Fixes Spell Plague - Added ability to determine if `sdi` should take effect for Spell Damage. - Fixes animal form timer ticking non-stop while logged out.
This commit is contained in:
parent
6747168db0
commit
a552cf4138
51 changed files with 4164 additions and 4188 deletions
|
|
@ -1,45 +1,44 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Spells.Necromancy
|
||||
namespace Server.Spells.Necromancy;
|
||||
|
||||
public class LichFormSpell : TransformationSpell
|
||||
{
|
||||
public class LichFormSpell : TransformationSpell
|
||||
private static readonly SpellInfo _info = new(
|
||||
"Lich Form",
|
||||
"Rel Xen Corp Ort",
|
||||
203,
|
||||
9031,
|
||||
Reagent.GraveDust,
|
||||
Reagent.DaemonBlood,
|
||||
Reagent.NoxCrystal
|
||||
);
|
||||
|
||||
public LichFormSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
|
||||
{
|
||||
private static readonly SpellInfo _info = new(
|
||||
"Lich Form",
|
||||
"Rel Xen Corp Ort",
|
||||
203,
|
||||
9031,
|
||||
Reagent.GraveDust,
|
||||
Reagent.DaemonBlood,
|
||||
Reagent.NoxCrystal
|
||||
);
|
||||
|
||||
public LichFormSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
|
||||
{
|
||||
}
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 70.0;
|
||||
public override int RequiredMana => 23;
|
||||
|
||||
public override int Body => 749;
|
||||
|
||||
public override int FireResistOffset => -10;
|
||||
public override int ColdResistOffset => +10;
|
||||
public override int PoisResistOffset => +10;
|
||||
|
||||
public override double TickRate => 2.5;
|
||||
|
||||
public override void DoEffect(Mobile m)
|
||||
{
|
||||
m.PlaySound(0x19C);
|
||||
m.FixedParticles(0x3709, 1, 30, 9904, 1108, 6, EffectLayer.RightFoot);
|
||||
}
|
||||
|
||||
public override void OnTick(Mobile m)
|
||||
{
|
||||
--m.Hits;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 70.0;
|
||||
public override int RequiredMana => 23;
|
||||
|
||||
public override int Body => 749;
|
||||
|
||||
public override int FireResistOffset => -10;
|
||||
public override int ColdResistOffset => +10;
|
||||
public override int PoisResistOffset => +10;
|
||||
|
||||
public override double TickRate => 2.5;
|
||||
|
||||
public override void DoEffect(Mobile m)
|
||||
{
|
||||
m.PlaySound(0x19C);
|
||||
m.FixedParticles(0x3709, 1, 30, 9904, 1108, 6, EffectLayer.RightFoot);
|
||||
}
|
||||
|
||||
public override void OnTick(Mobile m)
|
||||
{
|
||||
--m.Hits;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue