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.Necromancy
);
private static readonly Dictionary<Mobile, Mobile> m_OathTable = new();
private static readonly Dictionary<Mobile, ExpireTimer> m_Table = new();
private static readonly Dictionary<Mobile, ExpireTimer> _table = new();
public BloodOathSpell(Mobile caster, Item scroll = null) : base(caster, scroll, _info)
{
@ -65,7 +65,7 @@ namespace Server.Spells.Necromancy
* ((ss-rm)/8)+8
*/
m_Table.TryGetValue(m, out var timer);
_table.TryGetValue(m, out var timer);
timer?.DoExpire();
m_OathTable[Caster] = Caster;
@ -90,7 +90,7 @@ namespace Server.Spells.Necromancy
BuffInfo.AddBuff(Caster, new BuffInfo(BuffIcon.BloodOathCaster, 1075659, duration, Caster, m.Name));
BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.BloodOathCurse, 1075661, duration, m, Caster.Name));
m_Table[m] = timer;
_table[m] = timer;
HarmfulSpell(m);
}
@ -104,7 +104,7 @@ namespace Server.Spells.Necromancy
public static void RemoveCurse(Mobile m)
{
m_Table.TryGetValue(m, out var t);
_table.TryGetValue(m, out var t);
t?.DoExpire();
}
@ -153,7 +153,7 @@ namespace Server.Spells.Necromancy
BuffInfo.RemoveBuff(m_Caster, BuffIcon.BloodOathCaster);
BuffInfo.RemoveBuff(m_Target, BuffIcon.BloodOathCurse);
m_Table.Remove(m_Caster);
_table.Remove(m_Caster);
}
}
}