fix: Removes LINQ from Map.cs (#834)

* Removes LINQ from Map
* Removes broken GetObjectsInRange with items/mobile flags.
This commit is contained in:
Kamron Batman 2021-12-28 14:32:45 -08:00 • committed by GitHub
parent 5019ce9694
commit 284c3d0f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 833 additions and 87 deletions

View file

@ -215,7 +215,7 @@ namespace Server.Items
alchemyBonus = (int)(from.Skills.Alchemy.Value / (Core.AOS ? 5 : 10));
}
var eable = map.GetObjectsInRange(loc, ExplosionRange, LeveledExplosion);
var eable = map.GetObjectsInRange(loc, ExplosionRange);
using var queue = PooledRefQueue<IEntity>.Create();
var toDamage = 0;
@ -234,7 +234,7 @@ namespace Server.Items
queue.Enqueue(entity);
}
}
else if (entity is BaseExplosionPotion)
else if (LeveledExplosion && entity is BaseExplosionPotion)
{
queue.Enqueue(entity);
}