fix: More spell variable cleanup (#850)
This commit is contained in:
parent
5df7bf6a75
commit
15b2d08ea2
35 changed files with 162 additions and 162 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue