fix: More spell variable cleanup (#850)

This commit is contained in:
Kamron Batman 2021-11-14 18:48:44 -08:00 • committed by GitHub
parent 5df7bf6a75
commit 15b2d08ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 162 additions and 162 deletions

View file

@ -16,7 +16,7 @@ namespace Server.Spells.Fourth
Reagent.SpidersSilk
);
private static readonly HashSet<Mobile> m_Table = new();
private static readonly HashSet<Mobile> _table = new();
public ManaDrainSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
{
@ -40,7 +40,7 @@ namespace Server.Spells.Fourth
{
var toDrain = Math.Clamp(40 + (int)(GetDamageSkill(Caster) - GetResistSkill(m)), 0, m.Mana);
if (m_Table.Contains(m))
if (_table.Contains(m))
{
toDrain = 0;
}
@ -52,7 +52,7 @@ namespace Server.Spells.Fourth
{
m.Mana -= toDrain;
m_Table.Add(m);
_table.Add(m);
Timer.StartTimer(TimeSpan.FromSeconds(5.0), () => AosDelay_Callback(m, toDrain));
}
}
@ -96,7 +96,7 @@ namespace Server.Spells.Fourth
m.PlaySound(0x28E);
}
m_Table.Remove(m);
_table.Remove(m);
}
public override double GetResistPercent(Mobile target) => 99.0;