public static void Main()
        {
            // Ignore any unregistered feats.
            var feat = NWNXEvents.OnFeatUsed_GetFeat();

            if (!AbilityRegistry.IsRegistered(feat))
            {
                return;
            }
            var target = NWNXEvents.OnFeatUsed_GetTarget();

            // Retrieve stats and validate the use of this ability.
            var stats = GetUserStats(NWGameObject.OBJECT_SELF, target, feat);

            if (!ValidateFeatUse(stats))
            {
                return;
            }

            // Begin the casting process
            StartCasting(stats);
        }