0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 17:10:44 -05:00

Fix lighthouse class build failure

This commit is contained in:
Dev 2023-07-07 10:57:55 +01:00
parent 181f2328a5
commit 2a4cc419de

View File

@ -106,7 +106,7 @@ namespace Aki.SinglePlayer.Models.Progression
private void SetupBosses()
{
foreach (var aiBot in _gameWorld.RegisteredPlayers)
foreach (var aiBot in _gameWorld.AllAlivePlayersList)
{
if (!aiBot.IsYourPlayer)
{
@ -114,9 +114,9 @@ namespace Aki.SinglePlayer.Models.Progression
if (aiBot.AIData.BotOwner.IsRole(WildSpawnType.bossZryachiy) || aiBot.AIData.BotOwner.IsRole(WildSpawnType.followerZryachiy))
{
// Subscribe to Bosses OnDeath event
aiBot.OnIPlayerDeadOrUnspawn += player1 =>
aiBot.OnPlayerDeadOrUnspawn += player1 =>
{
if (player1?.Profile.KillerId == _gameWorld.MainPlayer.ProfileId)
if (player1?.KillerId == _gameWorld.MainPlayer.ProfileId)
{
_aggressor = true;
}