Client LuaCsForBarotrauma
AbilityConditionCrewMemberUnconscious.cs
1 #nullable enable
2 
3 namespace Barotrauma.Abilities
4 {
5  internal sealed class AbilityConditionCrewMemberUnconscious : AbilityConditionDataless
6  {
7  public AbilityConditionCrewMemberUnconscious(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement) { }
8 
9  protected override bool MatchesConditionSpecific()
10  {
11  foreach (Character c in Character.GetFriendlyCrew(character))
12  {
13  if (!c.IsDead && c.IsUnconscious)
14  {
15  return true;
16  }
17  }
18 
19  return false;
20  }
21  }
22 }
@ Character
Characters only