private static bool AllowGain( Mobile from, Skill skill, object obj ) { if ( AntiMacroCode && from is PlayerMobile && UseAntiMacro[skill.Info.SkillID] ) return ((PlayerMobile)from).AntiMacroCheck( skill, obj ); else return true; }