Some cleanup of contains keys and try get values (#246)
This commit is contained in:
parent
9cbb0cfd23
commit
a236617ad9
69 changed files with 3508 additions and 350 deletions
|
|
@ -97,9 +97,8 @@ namespace Server.Spells.Fourth
|
|||
|
||||
public static void RemoveEntry(Mobile m)
|
||||
{
|
||||
if (_Table.TryGetValue(m, out var v))
|
||||
if (_Table.Remove(m, out var v))
|
||||
{
|
||||
_Table.Remove(m);
|
||||
m.EndAction<ArchProtectionSpell>();
|
||||
m.VirtualArmorMod -= Math.Min(v, m.VirtualArmorMod);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue