Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
babaevlsdd committed Nov 16, 2024
1 parent ba7530e commit fb79ffa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/Antag/AntagSelectionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Content.Server.Roles;
using Content.Server.Roles.Jobs;
using Content.Server.Shuttles.Components;
using Content.Server.Bible.Components; // Sunrise-Vampire
using Content.Shared.Antag;
using Content.Shared.Clothing;
using Content.Shared.GameTicking;
Expand Down Expand Up @@ -506,6 +507,11 @@ public bool IsEntityValid(EntityUid? entity, AntagSelectionDefinition def)
if (entity == null)
return true;

// Sunrise-Vampire-Start
if (def.PrefRoles.Any(role => role == "Vampire") && HasComp<BibleUserComponent>(entity.Value))
return false;
// Sunrise-Vampire-End

if (HasComp<PendingClockInComponent>(entity))
return false;

Expand Down

0 comments on commit fb79ffa

Please sign in to comment.