Client LuaCsForBarotrauma
AbilityConditionItemIsStatic.cs
2 
3 namespace Barotrauma.Abilities
4 {
6  {
7  public AbilityConditionItemIsStatic(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement) { }
8 
9  protected override bool MatchesConditionSpecific(AbilityObject abilityObject)
10  {
11  if (abilityObject is IAbilityItem { Item: var item })
12  {
13  return item.GetComponent<Holdable>() is null && item.GetComponent<Wearable>() is null;
14  }
15 
16  return false;
17  }
18  }
19 }
override bool MatchesConditionSpecific(AbilityObject abilityObject)
AbilityConditionItemIsStatic(CharacterTalent characterTalent, ContentXElement conditionElement)