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,41 +1,40 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Spells.Necromancy
|
||||
namespace Server.Spells.Necromancy;
|
||||
|
||||
public class HorrificBeastSpell : TransformationSpell
|
||||
{
|
||||
public class HorrificBeastSpell : TransformationSpell
|
||||
private static readonly SpellInfo _info = new(
|
||||
"Horrific Beast",
|
||||
"Rel Xen Vas Bal",
|
||||
203,
|
||||
9031,
|
||||
Reagent.BatWing,
|
||||
Reagent.DaemonBlood
|
||||
);
|
||||
|
||||
public HorrificBeastSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
|
||||
{
|
||||
private static readonly SpellInfo _info = new(
|
||||
"Horrific Beast",
|
||||
"Rel Xen Vas Bal",
|
||||
203,
|
||||
9031,
|
||||
Reagent.BatWing,
|
||||
Reagent.DaemonBlood
|
||||
);
|
||||
|
||||
public HorrificBeastSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
|
||||
{
|
||||
}
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 40.0;
|
||||
public override int RequiredMana => 11;
|
||||
|
||||
public override int Body => 746;
|
||||
|
||||
public override void DoEffect(Mobile m)
|
||||
{
|
||||
m.PlaySound(0x165);
|
||||
m.FixedParticles(0x3728, 1, 13, 9918, 92, 3, EffectLayer.Head);
|
||||
|
||||
m.Delta(MobileDelta.WeaponDamage);
|
||||
m.CheckStatTimers();
|
||||
}
|
||||
|
||||
public override void RemoveEffect(Mobile m)
|
||||
{
|
||||
m.Delta(MobileDelta.WeaponDamage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 40.0;
|
||||
public override int RequiredMana => 11;
|
||||
|
||||
public override int Body => 746;
|
||||
|
||||
public override void DoEffect(Mobile m)
|
||||
{
|
||||
m.PlaySound(0x165);
|
||||
m.FixedParticles(0x3728, 1, 13, 9918, 92, 3, EffectLayer.Head);
|
||||
|
||||
m.Delta(MobileDelta.WeaponDamage);
|
||||
m.CheckStatTimers();
|
||||
}
|
||||
|
||||
public override void RemoveEffect(Mobile m)
|
||||
{
|
||||
m.Delta(MobileDelta.WeaponDamage);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue