static void Postfix(ActivatableAbilityRestriction __instance, ref bool __result, ref bool?__state)
 {
     if (__state ?? IsAvailable(__instance.GetType(), __instance.Owner))
     {
         __result = true;
     }
 }
 static bool Prefix(ActivatableAbilityRestriction __instance, ref bool?__state)
 {
     if ((__state = IsAvailable(__instance.GetType(), __instance.Owner)).Value)
     {
         return(false);
     }
     return(true);
 }