示例#1
0
        public virtual bool TargetableBy(Actor self, Actor viewer)
        {
            if (cloak == null || (!viewer.IsDead && viewer.HasTrait <IgnoresCloak>()))
            {
                return(true);
            }

            return(cloak.IsVisible(self, viewer.Owner));
        }
示例#2
0
        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));
        }