Fix: Portable Flasher (#10726)

This commit is contained in:
Tomás Alves
2022-08-31 13:27:30 +01:00
committed by GitHub
parent abb46cf6b2
commit 8c27322f25

View File

@@ -165,7 +165,7 @@ namespace Content.Server.Flash
foreach (var entity in flashableEntities) foreach (var entity in flashableEntities)
{ {
// Check for unobstructed entities while ignoring the mobs with flashable components. // Check for unobstructed entities while ignoring the mobs with flashable components.
if (!_interactionSystem.InRangeUnobstructed(entity, mapPosition, range, CollisionGroup.Opaque, (e) => flashableEntities.Contains(e))) if (!_interactionSystem.InRangeUnobstructed(entity, mapPosition, range, CollisionGroup.Opaque, (e) => flashableEntities.Contains(e) || e == source))
continue; continue;
// They shouldn't have flash removed in between right? // They shouldn't have flash removed in between right?