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