private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType) { return(entry != null && entry.CheckFunction(hero, damageType)); }