Server.Spells.SpellHelper.CheckCombat C# (CSharp) Méthode

CheckCombat() public static méthode

public static CheckCombat ( Mobile m ) : bool
m Mobile
Résultat bool
		public static bool CheckCombat( Mobile m )
		{
			if( !RestrictTravelCombat )
				return false;

			for( int i = 0; i < m.Aggressed.Count; ++i )
			{
				AggressorInfo info = m.Aggressed[i];

				if( info.Defender.Player && (DateTime.Now - info.LastCombatTime) < CombatHeatDelay )
					return true;
			}

			return false;
		}