Aura.Channel.World.Entities.NPC.CanTarget C# (CSharp) Method

CanTarget() public method

Returns whether the NPC can target the given creature.
public CanTarget ( Creature creature ) : bool
creature Creature
return bool
		public override bool CanTarget(Creature creature)
		{
			if (!base.CanTarget(creature))
				return false;

			// Named NPCs (normal dialog ones) can't be targeted.
			// Important because AIs target /pc/ and most NPCs are humans.
			if (creature.Has(CreatureStates.NamedNpc))
				return false;

			return true;
		}