mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
41b4c8f8dd
commit
59d7fc41fe
2 files changed
+7
-7
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
<Description>EHR</Description>
|
||||
<Authors>Gurge44</Authors>
|
||||
<langVersion>preview</langVersion>
|
||||
<AmongUs>D:\Epic Games\AmongUs</AmongUs>
|
||||
<AmongUs>E:\Program Files\AmongUs</AmongUs>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Optimize>True</Optimize>
|
||||
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
|
||||
|
||||
@@ -617,14 +617,14 @@ namespace EHR
|
||||
var hit = new Vector2(Random.Range(MapBounds.X.Left, MapBounds.X.Right), Random.Range(MapBounds.Y.Bottom, MapBounds.Y.Top));
|
||||
var cno = new Lightning(hit);
|
||||
if (cno.playerControl.GetPlainShipRoom() != default(PlainShipRoom)) cno.Despawn();
|
||||
foreach (var pc in Main.AllAlivePlayerControls)
|
||||
{
|
||||
if (pc.GetPlainShipRoom() != default(PlainShipRoom)) continue;
|
||||
if (Vector2.Distance(pc.Pos(), hit) <= Range)
|
||||
else
|
||||
foreach (var pc in Main.AllAlivePlayerControls)
|
||||
{
|
||||
pc.Suicide(PlayerState.DeathReason.Lightning);
|
||||
if (Vector2.Distance(pc.Pos(), hit) <= Range / 2f)
|
||||
{
|
||||
pc.Suicide(PlayerState.DeathReason.Lightning);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user