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

Aggro() public method

Aggroes target, setting target and putting creature in battle stance.
public Aggro ( Creature target ) : void
target Creature
return void
		public override void Aggro(Creature target)
		{
			if (this.AI == null)
				return;

			// Aggro attacker if there is not current target,
			// or if there is a target but it's not a player, and the attacker is one,
			// or if the current target is not aggroed yet.
			if (this.Target == null || (this.Target != null && target != null && !this.Target.IsPlayer && target.IsPlayer) || this.AI.State != AiScript.AiState.Aggro)
				this.AI.AggroCreature(target);
		}