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