fix: Prepares for IPooledEnumerable removal (#1548)
### Summary - Removes `IPooledEnumerable` (non-generic) - Changes `IPooledEnumerable<T>` so that `Free()` is replaced with the `IDisposable` pattern
This commit is contained in:
parent
c2d6578955
commit
d57f1fecc1
92 changed files with 644 additions and 907 deletions
|
|
@ -47,9 +47,7 @@ namespace Server.Spells.Mysticism
|
|||
var casterParty = Party.Get(Caster);
|
||||
if (casterParty != null)
|
||||
{
|
||||
IPooledEnumerable eable = Caster.Map.GetMobilesInRange(m.Location, 2);
|
||||
|
||||
foreach (Mobile mob in eable)
|
||||
foreach (Mobile mob in Caster.Map.GetMobilesInRange(m.Location, 2))
|
||||
{
|
||||
if (mob == m)
|
||||
{
|
||||
|
|
@ -65,8 +63,6 @@ namespace Server.Spells.Mysticism
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
var primarySkill = GetBaseSkill(Caster);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue