Aura.Channel.World.GameEvents.GlobalDropByType.Matches C# (CSharp) Method

Matches() public method

public Matches ( Creature creature ) : bool
creature Aura.Channel.World.Entities.Creature
return bool
		public override bool Matches(Creature creature)
		{
			switch (this.Type)
			{
				case GlobalDropType.Npcs:
					var isMonster = creature.Has(CreatureStates.Npc);
					return isMonster;

				case GlobalDropType.Players:
					var isPlayer = (creature.IsPlayer);
					return isPlayer;
			}

			return false;
		}
	}