public virtual bool TargetableBy(Actor self, Actor viewer) { if (cloak == null || (!viewer.IsDead && viewer.HasTrait <IgnoresCloak>())) { return(true); } return(cloak.IsVisible(self, viewer.Owner)); }
public virtual bool TargetableBy(Actor self, Actor viewer) { if (IsTraitDisabled) { return(false); } if (cloak == null || (!viewer.IsDead && viewer.Info.HasTraitInfo <IgnoresCloakInfo>())) { return(true); } return(cloak.IsVisible(self, viewer.Owner)); }