mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 04:30:45 -05:00
Update AddEnemyToAllGroupsInBotZonePatch to latest code (!153)
Was missing checks that now exist in the client, works as intended now from my testing. Please test and confirm as well. **Note**: I strongly believe that this patch is now redundant and can be removed, I am still testing to see if this is the case. Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com> Reviewed-on: SPT/Modules#153 Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com> Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
f08011788c
commit
de7e762211
@ -45,11 +45,14 @@ namespace SPT.Custom.Patches
|
|||||||
bool differentSide = aggressor.Side != group.Side;
|
bool differentSide = aggressor.Side != group.Side;
|
||||||
bool sameSide = aggressor.Side == target.Side;
|
bool sameSide = aggressor.Side == target.Side;
|
||||||
|
|
||||||
if (!group.Enemies.ContainsKey(aggressor)
|
if (!group.HaveFollowTarget(aggressor)
|
||||||
|
&& !group.Enemies.ContainsKey(aggressor)
|
||||||
&& (differentSide || !sameSide)
|
&& (differentSide || !sameSide)
|
||||||
&& !group.HaveMemberWithRole(WildSpawnType.gifter)
|
&& !group.HaveMemberWithRole(WildSpawnType.gifter)
|
||||||
&& group.ShallRevengeFor(target)
|
&& !group.HaveMemberWithRole(WildSpawnType.sectantWarrior)
|
||||||
)
|
&& !group.HaveMemberWithRole(WildSpawnType.sectantPriest)
|
||||||
|
&& !group.InitialFileSettings.Boss.NOT_ADD_TO_ENEMY_ON_KILLS
|
||||||
|
&& group.ShallRevengeFor(target))
|
||||||
{
|
{
|
||||||
group.AddEnemy(aggressor, EBotEnemyCause.AddEnemyToAllGroupsInBotZone);
|
group.AddEnemy(aggressor, EBotEnemyCause.AddEnemyToAllGroupsInBotZone);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user