Server.Misc.SkillCheck.Mobile_SkillCheckDirectTarget C# (CSharp) Méthode

Mobile_SkillCheckDirectTarget() public static méthode

public static Mobile_SkillCheckDirectTarget ( Server.Mobile from, SkillName skillName, object target, double chance ) : bool
from Server.Mobile
skillName SkillName
target object
chance double
Résultat bool
		public static bool Mobile_SkillCheckDirectTarget( Mobile from, SkillName skillName, object target, double chance )
		{
			Skill skill = from.Skills[skillName];

			if ( skill == null )
				return false;

			if ( chance < 0.0 )
				return false; // Too difficult
			else if ( chance >= 1.0 )
				return true; // No challenge

			return CheckSkill( from, skill, target, chance );
		}